Browse Source

Style fix in added code

PEP8 says to prefer "is not None"
Alan Jenkins 10 years ago
parent
commit
d83b919d52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      attic/repository.py

+ 1 - 1
attic/repository.py

@@ -478,7 +478,7 @@ class LoggedIO(object):
 
     def delete_segment(self, segment):
         fd = self.fds.pop(segment)
-        if fd != None:
+        if fd is not None:
             fd.close()
         try:
             os.unlink(self.segment_filename(segment))