Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/presence/presenceservice.py
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-10-15 18:04:34 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-11-23 16:14:32 (GMT)
commit4d978fda14f7029dca7ec9925ac3716c56a74875 (patch)
tree8c5d3ecd8bde328be12a751b441f0766acffa594 /src/sugar/presence/presenceservice.py
parente2231d56203dcc58cc8a8a873ab1eef1b56a629e (diff)
PEP8 cleanup: ensure lines are shorter than 80 characters
Caught by PEP8. This is important for Sugar because the XO has a small screen where long lines would make the code hard to understand (because you need to constantly scroll horizontally). Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer<simon@schampijer.de> CC: Aleksey Lim <alsroot@member.fsf.org>
Diffstat (limited to 'src/sugar/presence/presenceservice.py')
-rw-r--r--src/sugar/presence/presenceservice.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sugar/presence/presenceservice.py b/src/sugar/presence/presenceservice.py
index fa5edcf..e183446 100644
--- a/src/sugar/presence/presenceservice.py
+++ b/src/sugar/presence/presenceservice.py
@@ -72,8 +72,8 @@ class PresenceService(gobject.GObject):
"""
if self._activity_cache is not None:
if self._activity_cache.props.id != activity_id:
- raise RuntimeError('Activities can only access their own shared'
- 'instance')
+ raise RuntimeError('Activities can only access their own'
+ ' shared instance')
return self._activity_cache
else:
connection_manager = get_connection_manager()
@@ -105,8 +105,8 @@ class PresenceService(gobject.GObject):
def get_activity_by_handle(self, connection_path, room_handle):
if self._activity_cache is not None:
if self._activity_cache.room_handle != room_handle:
- raise RuntimeError('Activities can only access their own shared'
- 'instance')
+ raise RuntimeError('Activities can only access their own'
+ ' shared instance')
return self._activity_cache
else:
connection_manager = get_connection_manager()
@@ -227,8 +227,8 @@ class PresenceService(gobject.GObject):
returns the bus name and the object path of the Telepathy connection
"""
- connection_manager = get_connection_manager()
- account_path, connection = connection_manager.get_preferred_connection()
+ manager = get_connection_manager()
+ account_path, connection = manager.get_preferred_connection()
if connection is None:
return None
else: