commit | 84fedf7f061797b1fc95b778e517e6dc86e36db2 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Feb 06 22:59:15 2010 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Feb 06 22:59:15 2010 +0000 |
tree | fd5291aa914152e1f49eb5197f28b76fedb9e0d3 | |
parent | 7d4b759bd972742dfba35597708522f91be5548a [diff] [blame] |
No need to assign the results of expressions used only for side effects.
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 297b68e..6be031b 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py
@@ -139,7 +139,7 @@ def lexists(path): """Test whether a path exists. Returns True for broken symbolic links""" try: - st = os.lstat(path) + os.lstat(path) except os.error: return False return True