Changeset 1050

Show
Ignore:
Timestamp:
09/09/07 13:50:05 (15 months ago)
Author:
wichert
Message:

Why not use booleans

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pyrad/packet.py

    r1040 r1050  
    251251        def VerifyReply(self, reply, rawreply=None): 
    252252                if reply.id!=self.id: 
    253                         return 0 
     253                        return False 
    254254 
    255255                if rawreply is None: 
     
    260260 
    261261                if hash!=reply.authenticator: 
    262                         return 0 
    263  
    264                 return 1 
     262                        return False 
     263 
     264                return True 
    265265 
    266266