summaryrefslogtreecommitdiffstats
path: root/Lib/genericpath.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-06 22:59:15 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-06 22:59:15 (GMT)
commit84fedf7f061797b1fc95b778e517e6dc86e36db2 (patch)
treefd5291aa914152e1f49eb5197f28b76fedb9e0d3 /Lib/genericpath.py
parent7d4b759bd972742dfba35597708522f91be5548a (diff)
downloadcpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.zip
cpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.tar.gz
cpython-84fedf7f061797b1fc95b778e517e6dc86e36db2.tar.bz2
No need to assign the results of expressions used only for side effects.
Diffstat (limited to 'Lib/genericpath.py')
-rw-r--r--Lib/genericpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/genericpath.py b/Lib/genericpath.py
index 73d7b26..a0bf601 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