Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/buddy.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/buddy.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/buddy.py')
-rw-r--r--src/jarabe/model/buddy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jarabe/model/buddy.py b/src/jarabe/model/buddy.py
index 5f3176e..46a9366 100644
--- a/src/jarabe/model/buddy.py
+++ b/src/jarabe/model/buddy.py
@@ -30,6 +30,9 @@ from jarabe.util.telepathy import connection_watcher
CONNECTION_INTERFACE_BUDDY_INFO = 'org.laptop.Telepathy.BuddyInfo'
+_owner_instance = None
+
+
class BaseBuddyModel(gobject.GObject):
__gtype_name__ = 'SugarBaseBuddyModel'
@@ -180,7 +183,6 @@ class OwnerBuddyModel(BaseBuddyModel):
return True
-_owner_instance = None
def get_owner_instance():
global _owner_instance
if _owner_instance is None: