summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-20 12:52:47 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-20 12:52:47 (GMT)
commitb67075beb573c6894758c0469c63e27a3be03067 (patch)
tree3ddee113d4c8c3bc57f13d04fc4f2b719e86a657 /Lib/importlib/_bootstrap.py
parent006c5a22354ea73ee26163a957782115cef25f8f (diff)
downloadcpython-b67075beb573c6894758c0469c63e27a3be03067.zip
cpython-b67075beb573c6894758c0469c63e27a3be03067.tar.gz
cpython-b67075beb573c6894758c0469c63e27a3be03067.tar.bz2
_relax_case -> _make_relax_case
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index f690937..fe5f911 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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):