]> granicus.if.org Git - python/commitdiff
_relax_case -> _make_relax_case
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 20 Feb 2012 12:52:47 +0000 (13:52 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 20 Feb 2012 12:52:47 +0000 (13:52 +0100)
Lib/importlib/_bootstrap.py

index f69093747c0b677e938298f45358ad9c33e8c03a..fe5f911df5847eb8bd28c6b3ad416c5b47c3efc6 100644 (file)
@@ -22,12 +22,13 @@ work. One should use importlib as the public-facing version of this module.
 CASE_INSENSITIVE_PLATFORMS = 'win', 'cygwin', 'darwin'
 
 
-def _relax_case():
-    """True if filenames must be checked case-insensitively."""
+def _make_relax_case():
     if any(map(sys.platform.startswith, CASE_INSENSITIVE_PLATFORMS)):
+        """True if filenames must be checked case-insensitively."""
         def _relax_case():
             return b'PYTHONCASEOK' in _os.environ
     else:
+        """True if filenames must be checked case-insensitively."""
         def _relax_case():
             return False
     return _relax_case
@@ -1117,7 +1118,7 @@ def _setup(sys_module, imp_module):
     setattr(self_module, '_os', os_module)
     setattr(self_module, 'path_sep', path_sep)
     # Constants
-    setattr(self_module, '_relax_case', _relax_case())
+    setattr(self_module, '_relax_case', _make_relax_case())
 
 
 def _install(sys_module, imp_module):