]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/helpers.py
do_bloom(): remove unused "count" variable
[bup.git] / lib / bup / helpers.py
index 300e67eee25dd9123537b73a1b4fc1a3fc72075c..715ce3389dcc9550e9447fb86025c68c2d677707 100644 (file)
@@ -188,8 +188,8 @@ def unlink(f):
     try:
         os.unlink(f)
     except OSError, e:
-        if e.errno == errno.ENOENT:
-            pass  # it doesn't exist, that's what you asked for
+        if e.errno != errno.ENOENT:
+            raise
 
 
 def readpipe(argv, preexec_fn=None):
@@ -638,8 +638,8 @@ def atomically_replaced_file(name, mode='w', buffering=-1):
     name if everything succeeds.
 
     The mode and buffering arguments are handled exactly as with open,
-    and the yielded file will have have very restrictive permissions,
-    as per mkstemp.
+    and the yielded file will have very restrictive permissions, as
+    per mkstemp.
 
     E.g.::