viff

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 diff
     1.1 --- a/viff/hash_broadcast.py	Fri Oct 16 23:54:38 2009 +0200
     1.2 +++ b/viff/hash_broadcast.py	Fri Oct 16 23:55:06 2009 +0200
     1.3 @@ -134,7 +134,7 @@
     1.4          self.program_counter[-1] += 1
     1.5  
     1.6          pc = tuple(self.program_counter)
     1.7 -        if (self.id in receivers or self.id in senders):
     1.8 +        if self.id in receivers or self.id in senders:
     1.9              results = [None] * len(senders)
    1.10          else:
    1.11              results = []
     2.1 --- a/viff/reactor.py	Fri Oct 16 23:54:38 2009 +0200
     2.2 +++ b/viff/reactor.py	Fri Oct 16 23:55:06 2009 +0200
     2.3 @@ -42,7 +42,7 @@
     2.4          self.runUntilCurrent()
     2.5          t2 = self.timeout()
     2.6  
     2.7 -        if (t2 is not None):
     2.8 +        if t2 is not None:
     2.9              t = min(t, self.running and t2)
    2.10  
    2.11          SelectReactor.doIteration(self, t)
     3.1 --- a/viff/runtime.py	Fri Oct 16 23:54:38 2009 +0200
     3.2 +++ b/viff/runtime.py	Fri Oct 16 23:55:06 2009 +0200
     3.3 @@ -912,7 +912,7 @@
     3.4      def process_queue(self, queue):
     3.5          """Execute the callbacks of the deferreds in *queue*."""
     3.6  
     3.7 -        while(queue):
     3.8 +        while queue:
     3.9              deferred, data = queue.popleft()
    3.10              deferred.callback(data)
    3.11