diff options
Diffstat (limited to 'Lib/genericpath.py')
-rw-r--r-- | Lib/genericpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/genericpath.py b/Lib/genericpath.py index 41ad234829..2174187a03 100644 --- a/Lib/genericpath.py +++ b/Lib/genericpath.py @@ -15,7 +15,7 @@ __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime', def exists(path): """Test whether a path exists. Returns False for broken symbolic links""" try: - st = os.stat(path) + os.stat(path) except os.error: return False return True |