[meld] diffmap: PEP8
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] diffmap: PEP8
- Date: Sat, 3 Oct 2015 20:25:53 +0000 (UTC)
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]