No need to assign the results of expressions used only for side effects.

This commit is contained in:
Georg Brandl 2010-02-06 22:59:15 +00:00
parent 7d4b759bd9
commit 84fedf7f06
8 changed files with 7 additions and 9 deletions

View file

@ -139,7 +139,7 @@ def islink(path):
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