diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-10-22 13:15:21 -0500 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-10-22 13:15:21 -0500 |
commit | 42fb1cd0c6c16e48c4673b18e865e9a10de70541 (patch) | |
tree | f03df5c3334d7365f3777a3ee75bbf38ba7a7fd4 /src | |
parent | 66cdce502558c3811ab39ee595465b52769e023a (diff) | |
download | mock-42fb1cd0c6c16e48c4673b18e865e9a10de70541.tar.gz mock-42fb1cd0c6c16e48c4673b18e865e9a10de70541.tar.xz mock-42fb1cd0c6c16e48c4673b18e865e9a10de70541.zip |
avoid infinite loop in error handling.
Diffstat (limited to 'src')
-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: |