Pārlūkot izejas kodu

Style fix in added code

PEP8 says to prefer "is not None"
Alan Jenkins 10 gadi atpakaļ
vecāks
revīzija
d83b919d52
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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))