mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
simplify
This commit is contained in:
parent
67e700697e
commit
353c10772a
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue