[Python-checkins] cpython: simplify
philip.jenvey
python-checkins at python.org
Fri Feb 10 20:48:27 CET 2012
http://hg.python.org/cpython/rev/2857c4a3a26d
changeset: 74867:2857c4a3a26d
parent: 74865:705b56512287
user: Philip Jenvey <pjenvey at underboss.org>
date: Fri Feb 10 11:45:03 2012 -0800
summary:
simplify
files:
Lib/importlib/_bootstrap.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -36,10 +36,7 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list