viff

changeset 1197:7f1e95db5c6c

Removed unnecessary parenthesis in if-statements.
author Martin Geisler <mg@cs.au.dk>
date Fri, 17 Jul 2009 12:13:08 +0200
parents 84c8f3d5fa86
children 0fb5d4da2f1e
files viff/runtime.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/viff/runtime.py	Fri Jul 17 11:00:44 2009 +0200
     1.2 +++ b/viff/runtime.py	Fri Jul 17 12:13:08 2009 +0200
     1.3 @@ -796,7 +796,7 @@
     1.4          """Put deferred and data into the queue if the ViffReactor is running. 
     1.5          Otherwise, just execute the callback."""
     1.6  
     1.7 -        if (self.using_viff_reactor):
     1.8 +        if self.using_viff_reactor:
     1.9              self.deferred_queue.append((deferred, data))
    1.10          else:
    1.11              deferred.callback(data)
    1.12 @@ -828,10 +828,10 @@
    1.13  
    1.14          # setting the number to n makes the reactor called 
    1.15          # only every n-th time
    1.16 -        if (self.activation_counter >= 2):
    1.17 +        if self.activation_counter >= 2:
    1.18              self.depth_counter += 1
    1.19  
    1.20 -            if (self.depth_counter > self.max_depth):
    1.21 +            if self.depth_counter > self.max_depth:
    1.22                  # Record the maximal depth reached.
    1.23                  self.max_depth = self.depth_counter
    1.24