diff options
author | Sascha 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) |
commit | 4d978fda14f7029dca7ec9925ac3716c56a74875 (patch) | |
tree | 8c5d3ecd8bde328be12a751b441f0766acffa594 /src/sugar/presence/connectionmanager.py | |
parent | e2231d56203dcc58cc8a8a873ab1eef1b56a629e (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/connectionmanager.py')
-rw-r--r-- | src/sugar/presence/connectionmanager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sugar/presence/connectionmanager.py b/src/sugar/presence/connectionmanager.py index 6604d3f..78b744e 100644 --- a/src/sugar/presence/connectionmanager.py +++ b/src/sugar/presence/connectionmanager.py @@ -77,7 +77,8 @@ class ConnectionManager(object): Connection(account_path, connection) account = bus.get_object(ACCOUNT_MANAGER_SERVICE, account_path) - if account.Get(ACCOUNT, 'ConnectionStatus') == CONNECTION_STATUS_CONNECTED: + status = account.Get(ACCOUNT, 'ConnectionStatus') + if status == CONNECTION_STATUS_CONNECTED: self._connections_per_account[account_path].connected = True else: self._connections_per_account[account_path].connected = False |