viff

changeset 1337:568f9c696979

always use "is not None" instead of "!= None"
author Martin Geisler <mg@cs.au.dk>
date Tue, 27 Oct 2009 11:43:37 +0100
parents 13f6a14cafe0
children c7403cb56ace c2a553514804 3f6c65d4c9c1
files apps/benchutil.py viff/orlandi.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/apps/benchutil.py	Tue Oct 27 11:35:09 2009 +0100
     1.2 +++ b/apps/benchutil.py	Tue Oct 27 11:43:37 2009 +0100
     1.3 @@ -108,7 +108,7 @@
     1.4  
     1.5      def run_test(self, shares):
     1.6          # print "rt", self.rt.program_counter, self.pc
     1.7 -        if self.pc != None:
     1.8 +        if self.pc is not None:
     1.9              self.rt.program_counter = self.pc
    1.10          else:
    1.11              self.pc = list(self.rt.program_counter)
     2.1 --- a/viff/orlandi.py	Tue Oct 27 11:35:09 2009 +0100
     2.2 +++ b/viff/orlandi.py	Tue Oct 27 11:43:37 2009 +0100
     2.3 @@ -455,7 +455,7 @@
     2.4          3. ``[x] = [r] - Delta``
     2.5          """
     2.6          # TODO: Communitcation costs?
     2.7 -        assert (self.id in inputters and number != None) or (self.id not in inputters)
     2.8 +        assert (self.id in inputters and number is not None) or (self.id not in inputters)
     2.9  
    2.10          self.program_counter[-1] += 1
    2.11