Explorar o código

Style fix in added code

PEP8 says to prefer "is not None"
Alan Jenkins %!s(int64=10) %!d(string=hai) anos
pai
achega
d83b919d52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))