[telepathy-python/master] Use foo = not bar instead of if not bar then, etc.

Jonny Lamb jonny.lamb at collabora.co.uk
Thu Jul 16 01:48:26 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 src/server/conn.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/server/conn.py b/src/server/conn.py
index 4ba79f0..649c55c 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -522,9 +522,7 @@ class ConnectionInterfaceRequests(
         in_signature='a{sv}', out_signature='boa{sv}',
         async_callbacks=('_success', '_error'))
     def EnsureChannel(self, request, _success, _error):
-        yours = True
-        if self._channel_manager.channel_exists(request):
-            yours = False
+        yours = not self._channel_manager.channel_exists(request)
 
         type, handle_type, handle = self._check_basic_properties(request)
         self._validate_handle(request)
-- 
1.5.6.5



More information about the telepathy-commits mailing list