projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67e7006
)
simplify
author
Philip Jenvey
<pjenvey@underboss.org>
Fri, 10 Feb 2012 19:45:03 +0000
(11:45 -0800)
committer
Philip Jenvey
<pjenvey@underboss.org>
Fri, 10 Feb 2012 19:45:03 +0000
(11:45 -0800)
Lib/importlib/_bootstrap.py
patch
|
blob
|
history
diff --git
a/Lib/importlib/_bootstrap.py
b/Lib/importlib/_bootstrap.py
index 9f7bd11ccaef0c7dc72ec519ad81f2183d0b541e..9d12e32203150d82c3e78b4c0a2b3a538cff2e2d 100644
(file)
--- a/
Lib/importlib/_bootstrap.py
+++ b/
Lib/importlib/_bootstrap.py
@@
-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