From 353c10772ac1abc92460df94f014306c4ee4a0cd Mon Sep 17 00:00:00 2001 From: Philip Jenvey Date: Fri, 10 Feb 2012 11:45:03 -0800 Subject: simplify --- Lib/importlib/_bootstrap.py | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v0.12