changeset 1300:c03b8fbef478

Removed more unneeded parenthesis.
author Martin Geisler <mg@cs.au.dk>
date Fri, 16 Oct 2009 23:55:06 +0200
parents 050decea7ad4
children c44e2e1a9279
files viff/hash_broadcast.py viff/reactor.py viff/runtime.py
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/viff/hash_broadcast.py	Fri Oct 16 23:54:38 2009 +0200
+++ b/viff/hash_broadcast.py	Fri Oct 16 23:55:06 2009 +0200
@@ -134,7 +134,7 @@
         self.program_counter[-1] += 1
 
         pc = tuple(self.program_counter)
-        if (self.id in receivers or self.id in senders):
+        if self.id in receivers or self.id in senders:
             results = [None] * len(senders)
         else:
             results = []
--- a/viff/reactor.py	Fri Oct 16 23:54:38 2009 +0200
+++ b/viff/reactor.py	Fri Oct 16 23:55:06 2009 +0200
@@ -42,7 +42,7 @@
         self.runUntilCurrent()
         t2 = self.timeout()
 
-        if (t2 is not None):
+        if t2 is not None:
             t = min(t, self.running and t2)
 
         SelectReactor.doIteration(self, t)
--- a/viff/runtime.py	Fri Oct 16 23:54:38 2009 +0200
+++ b/viff/runtime.py	Fri Oct 16 23:55:06 2009 +0200
@@ -912,7 +912,7 @@
     def process_queue(self, queue):
         """Execute the callbacks of the deferreds in *queue*."""
 
-        while(queue):
+        while queue:
             deferred, data = queue.popleft()
             deferred.callback(data)