Browse Source

Style fix in added code

PEP8 says to prefer "is not None"
Alan Jenkins 10 năm trước cách đây
mục cha
commit
d83b919d52
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))