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 wrap: on
line diff
--- a/viff/runtime.py	Fri Jul 17 11:00:44 2009 +0200
+++ b/viff/runtime.py	Fri Jul 17 12:13:08 2009 +0200
@@ -796,7 +796,7 @@
         """Put deferred and data into the queue if the ViffReactor is running. 
         Otherwise, just execute the callback."""
 
-        if (self.using_viff_reactor):
+        if self.using_viff_reactor:
             self.deferred_queue.append((deferred, data))
         else:
             deferred.callback(data)
@@ -828,10 +828,10 @@
 
         # setting the number to n makes the reactor called 
         # only every n-th time
-        if (self.activation_counter >= 2):
+        if self.activation_counter >= 2:
             self.depth_counter += 1
 
-            if (self.depth_counter > self.max_depth):
+            if self.depth_counter > self.max_depth:
                 # Record the maximal depth reached.
                 self.max_depth = self.depth_counter