[mousetrap/gnome3-wip: 226/240] Observable doesn't need a config.



commit 1c3aa8639fdee858ec83c3f1c117398b2f5aca2c
Author: Stoney Jackson <dr stoney gmail com>
Date:   Mon Jun 30 15:43:35 2014 -0400

    Observable doesn't need a config.

 src/mousetrap/core.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/mousetrap/core.py b/src/mousetrap/core.py
index 3ab9bcb..f120016 100644
--- a/src/mousetrap/core.py
+++ b/src/mousetrap/core.py
@@ -52,8 +52,7 @@ class App(object):
 
 
 class Observable(object):
-    def __init__(self, config):
-        self._config = config
+    def __init__(self):
         self.__observers = []
         self.__arguments = {}
 
@@ -74,7 +73,7 @@ class Loop(Observable):
     CALLBACK_RUN = 'run'
 
     def __init__(self, config, app):
-        super(Loop, self).__init__(config)
+        super(Loop, self).__init__()
         self._config = config
         self._set_loops_per_second(config['loops_per_second'])
         self._timeout_id = None


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