diff options
-rw-r--r-- | src/py-libs/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py-libs/util.py b/src/py-libs/util.py index b48d72c..7f06e27 100644 --- a/src/py-libs/util.py +++ b/src/py-libs/util.py @@ -55,9 +55,9 @@ def rmtree(path, *args, **kargs): """version os shutil.rmtree that ignores no-such-file-or-directory errors, and tries harder if it finds immutable files""" tryAgain = 1 + triedTwice = 0 while tryAgain: tryAgain = 0 - triedTwice = 0 try: shutil.rmtree(path, *args, **kargs) except OSError, e: |