Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/notifications.py
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-16 15:06:20 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-24 19:22:01 (GMT)
commitc01171f8a2da07d0c9901848f4519a2cffb90c81 (patch)
tree99d16a69edb06c21d799005d61b44be98625d198 /src/jarabe/model/notifications.py
parent69dbe0fb1723b6f0402d23a19d137a3395f2f8e2 (diff)
style cleanup: move globals before class and method definitions
This only touches the globals that were flagged by pep8 due to white space issues or contain "instance" in their name (singleton pattern). I've also left the sunflower layout variables alone. AFAICT this layout is currently unused and should be removed instead (or factored out like the snow flake layout and reenabled). Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'src/jarabe/model/notifications.py')
-rw-r--r--src/jarabe/model/notifications.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jarabe/model/notifications.py b/src/jarabe/model/notifications.py
index f2e2d65..b5a6822 100644
--- a/src/jarabe/model/notifications.py
+++ b/src/jarabe/model/notifications.py
@@ -27,6 +27,9 @@ _DBUS_SERVICE = "org.freedesktop.Notifications"
_DBUS_IFACE = "org.freedesktop.Notifications"
_DBUS_PATH = "/org/freedesktop/Notifications"
+_instance = None
+
+
class NotificationService(dbus.service.Object):
def __init__(self):
bus = dbus.SessionBus()
@@ -82,7 +85,6 @@ class NotificationService(dbus.service.Object):
def ActionInvoked(self, notification_id, action_key):
pass
-_instance = None
def get_service():
global _instance