[gedit-plugins/gnome-3-14] Some PEP8ization fixes.



commit f5338616dd84b48429b823acfefe431e9954c005
Author: Matěj Cepl <mcepl cepl eu>
Date:   Tue Aug 25 17:06:16 2015 +0200

    Some PEP8ization fixes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720324

 plugins/joinlines/joinlines.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/joinlines/joinlines.py b/plugins/joinlines/joinlines.py
index 1b36917..4adf6f1 100644
--- a/plugins/joinlines/joinlines.py
+++ b/plugins/joinlines/joinlines.py
@@ -19,8 +19,9 @@
 #  Foundation, Inc., 51 Franklin Street, Fifth Floor,
 #  Boston, MA 02110-1301, USA.
 
-from gi.repository import GObject, Gio, Gtk, Gedit
 import gettext
+
+from gi.repository import GObject, Gedit, Gio, Gtk
 from gpdefs import *
 
 try:
@@ -166,7 +167,7 @@ class JoinLinesViewActivatable(GObject.Object, Gedit.ViewActivatable):
             return
 
         width = self.view.get_right_margin_position()
-        tabwidth = self.view.get_tab_width()
+        #tabwidth = self.view.get_tab_width()
 
         doc.begin_user_action()
 
@@ -217,7 +218,7 @@ class JoinLinesViewActivatable(GObject.Object, Gedit.ViewActivatable):
                doc.get_iter_at_mark(end_mark).compare(current_word_end) >= 0:
 
                 word_length = current_word_end.get_offset() - \
-                              current_word_start.get_offset()
+                    current_word_start.get_offset()
 
                 doc.delete(previous_word_end, current_word_start)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]