[meld] diffmap: PEP8



commit 537cdba27b7d7cfc0ec422a3bf4344925232a3e7
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Oct 4 06:12:17 2015 +1000

    diffmap: PEP8

 meld/diffmap.py |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/meld/diffmap.py b/meld/diffmap.py
index b7c8621..891f5be 100644
--- a/meld/diffmap.py
+++ b/meld/diffmap.py
@@ -82,10 +82,15 @@ class DiffMap(Gtk.DrawingArea):
         stepper_spacing = scrollbar.style_get_property("stepper-spacing")
 
         has_backward = scrollbar.style_get_property("has-backward-stepper")
-        has_secondary_forward = scrollbar.style_get_property("has-secondary-forward-stepper")
-        has_secondary_backward = scrollbar.style_get_property("has-secondary-backward-stepper")
-        has_foreward = scrollbar.style_get_property("has-forward-stepper")
-        steppers = [has_backward, has_secondary_forward, has_secondary_backward, has_foreward]
+        has_secondary_forward = scrollbar.style_get_property(
+            "has-secondary-forward-stepper")
+        has_secondary_backward = scrollbar.style_get_property(
+            "has-secondary-backward-stepper")
+        has_forward = scrollbar.style_get_property("has-forward-stepper")
+        steppers = [
+            has_backward, has_secondary_forward,
+            has_secondary_backward, has_forward
+        ]
 
         offset = stepper_size * steppers[0:2].count(True)
         shorter = stepper_size * steppers.count(True)


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