/rev/568f9c696979
changeset: 1337:568f9c696979
user: Martin Geisler <[email protected]>
date: Tue Oct 27 11:43:37 2009 +0100
summary: always use "is not None" instead of "!= None"
diffstat:
apps/benchutil.py | 2 +-
viff/orlandi.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 13f6a14cafe0 -r 568f9c696979 apps/benchutil.py
--- a/apps/benchutil.py Tue Oct 27 11:35:09 2009 +0100
+++ b/apps/benchutil.py Tue Oct 27 11:43:37 2009 +0100
@@ -108,7 +108,7 @@
def run_test(self, shares):
# print "rt", self.rt.program_counter, self.pc
- if self.pc != None:
+ if self.pc is not None:
self.rt.program_counter = self.pc
else:
self.pc = list(self.rt.program_counter)
diff -r 13f6a14cafe0 -r 568f9c696979 viff/orlandi.py
--- a/viff/orlandi.py Tue Oct 27 11:35:09 2009 +0100
+++ b/viff/orlandi.py Tue Oct 27 11:43:37 2009 +0100
@@ -455,7 +455,7 @@
3. ``[x] = [r] - Delta``
"""
# TODO: Communitcation costs?
- assert (self.id in inputters and number != None) or (self.id not in
inputters)
+ assert (self.id in inputters and number is not None) or (self.id not
in inputters)
self.program_counter[-1] += 1
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk