From 6ecb6cba0acf6d29edf803b91e4d7d7c960ca57f Mon Sep 17 00:00:00 2001 From: "Ryan P.C. McQuen" Date: Tue, 11 Jul 2017 10:56:45 -0700 Subject: [PATCH] PEP8-ify all the things. --- FileReloader.py | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/FileReloader.py b/FileReloader.py index 8c29256..a25e41a 100644 --- a/FileReloader.py +++ b/FileReloader.py @@ -1,22 +1,24 @@ -import sublime, sublime_plugin +import sublime +import sublime_plugin + class ReloadAllFilesCommand(sublime_plugin.WindowCommand): - def run(self): - self.focus_all_views() + def run(self): + self.focus_all_views() - def focus_all_views(self): - window = self.window - saved_view = window.active_view() - total_groups = window.num_groups() + def focus_all_views(self): + window = self.window + saved_view = window.active_view() + total_groups = window.num_groups() - for i in range(0, total_groups): - window.focus_group(i) - views = window.views_in_group(i) + for i in range(0, total_groups): + window.focus_group(i) + views = window.views_in_group(i) - # Reload all views in current group - for inner_view in views: - window.focus_view(inner_view) - window.run_command("revert") + # Reload all views in current group. + for inner_view in views: + window.focus_view(inner_view) + window.run_command("revert") - # Set the focus back to the saved view - window.focus_view(saved_view) + # Set the focus back to the saved view: + window.focus_view(saved_view)