瀏覽代碼

Style fix in added code

PEP8 says to prefer "is not None"
Alan Jenkins 10 年之前
父節點
當前提交
d83b919d52
共有 1 個文件被更改,包括 1 次插入1 次删除
  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))