From 6c42e32d98aa2e04d446f31b8e667a280acf4b54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= <ismael.bouya@normalesup.org>
Date: Wed, 27 Jul 2016 02:01:51 +0200
Subject: Coding styles

---
 helpers/action.py       | 3 ++-
 helpers/actions/wait.py | 4 +++-
 helpers/key.py          | 4 ++--
 helpers/mapping.py      | 3 ++-
 4 files changed, 9 insertions(+), 5 deletions(-)

(limited to 'helpers')

diff --git a/helpers/action.py b/helpers/action.py
index 1f374ec..6ac47b1 100644
--- a/helpers/action.py
+++ b/helpers/action.py
@@ -72,7 +72,8 @@ class Action:
     def on_enter_loading(self):
         if hasattr(actions, self.action):
             if 'music' in self.arguments:
-                self.arguments['music'].subscribe_loaded(self.callback_music_loaded)
+                self.arguments['music'].subscribe_loaded(
+                        self.callback_music_loaded)
             else:
                 self.success()
         else:
diff --git a/helpers/actions/wait.py b/helpers/actions/wait.py
index f7d2a78..ea42408 100644
--- a/helpers/actions/wait.py
+++ b/helpers/actions/wait.py
@@ -5,7 +5,9 @@ def run(action, duration=0, music=None, set_wait_id=None, **kwargs):
         action.mapping.add_wait_id(set_wait_id, action)
 
     action.sleep_event = threading.Event()
-    action.sleep_event_timer = threading.Timer(duration, action.sleep_event.set)
+    action.sleep_event_timer = threading.Timer(
+            duration,
+            action.sleep_event.set)
 
     if music is not None:
         music.wait_end()
diff --git a/helpers/key.py b/helpers/key.py
index 3c98ce7..2f94153 100644
--- a/helpers/key.py
+++ b/helpers/key.py
@@ -85,8 +85,8 @@ class Key(ButtonBehavior, Widget):
             'source': 'loaded',
             'dest': 'loaded_running',
             'after': ['run_actions', 'finish'],
-            # if a child, like loaded_no_actions, has no transitions, then it is
-            # bubbled to the parent, and we don't want that.
+            # if a child, like loaded_no_actions, has no transitions, then it
+            # is bubbled to the parent, and we don't want that.
             'conditions': ['is_loaded']
         },
         {
diff --git a/helpers/mapping.py b/helpers/mapping.py
index 1256696..dbc1a81 100644
--- a/helpers/mapping.py
+++ b/helpers/mapping.py
@@ -375,7 +375,8 @@ class Mapping(RelativeLayout):
                                 self.open_files[filename]\
                                         .reload_properties(**music_property)
 
-                                seen_files[filename] = self.open_files[filename]
+                                seen_files[filename] =\
+                                        self.open_files[filename]
                             else:
                                 seen_files[filename] = MusicFile(
                                         filename, self, **music_property)
-- 
cgit v1.2.3