[mousetrap/gnome3-wip: 226/240] Observable doesn't need a config.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 226/240] Observable doesn't need a config.
- Date: Mon, 8 Sep 2014 15:31:34 +0000 (UTC)
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]