Commit 353c1077 authored by Philip Jenvey's avatar Philip Jenvey

simplify

parent 67e70069
......@@ -36,10 +36,7 @@ def _case_ok(directory, check):
b'PYTHONCASEOK' not in _os.environ):
if not directory:
directory = '.'
if check in _os.listdir(directory):
return True
else:
return False
return check in _os.listdir(directory)
else:
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment