simplify
authorPhilip Jenvey <pjenvey@underboss.org>
Fri, 10 Feb 2012 19:45:03 +0000 (11:45 -0800)
committerPhilip Jenvey <pjenvey@underboss.org>
Fri, 10 Feb 2012 19:45:03 +0000 (11:45 -0800)
Lib/importlib/_bootstrap.py

index 9f7bd11ccaef0c7dc72ec519ad81f2183d0b541e..9d12e32203150d82c3e78b4c0a2b3a538cff2e2d 100644 (file)
@@ -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