summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2012-02-10 19:45:03 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2012-02-10 19:45:03 (GMT)
commit353c10772ac1abc92460df94f014306c4ee4a0cd (patch)
tree7db848dd456ba08aa1496fdb7abadbf0d74f6e65 /Lib/importlib/_bootstrap.py
parent67e700697e2384ac7972674f74bd6913f85e81ee (diff)
downloadcpython-353c10772ac1abc92460df94f014306c4ee4a0cd.zip
cpython-353c10772ac1abc92460df94f014306c4ee4a0cd.tar.gz
cpython-353c10772ac1abc92460df94f014306c4ee4a0cd.tar.bz2
simplify
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 9f7bd11..9d12e32 100644
--- 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