Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0588eac2
Commit
0588eac2
authored
Feb 20, 2012
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
43844351
b67075be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+4
-3
No files found.
Lib/importlib/_bootstrap.py
View file @
0588eac2
...
@@ -22,12 +22,13 @@ work. One should use importlib as the public-facing version of this module.
...
@@ -22,12 +22,13 @@ work. One should use importlib as the public-facing version of this module.
CASE_INSENSITIVE_PLATFORMS
=
'win'
,
'cygwin'
,
'darwin'
CASE_INSENSITIVE_PLATFORMS
=
'win'
,
'cygwin'
,
'darwin'
def
_relax_case
():
def
_make_relax_case
():
"""True if filenames must be checked case-insensitively."""
if
any
(
map
(
sys
.
platform
.
startswith
,
CASE_INSENSITIVE_PLATFORMS
)):
if
any
(
map
(
sys
.
platform
.
startswith
,
CASE_INSENSITIVE_PLATFORMS
)):
"""True if filenames must be checked case-insensitively."""
def
_relax_case
():
def
_relax_case
():
return
b'PYTHONCASEOK'
in
_os
.
environ
return
b'PYTHONCASEOK'
in
_os
.
environ
else
:
else
:
"""True if filenames must be checked case-insensitively."""
def
_relax_case
():
def
_relax_case
():
return
False
return
False
return
_relax_case
return
_relax_case
...
@@ -1117,7 +1118,7 @@ def _setup(sys_module, imp_module):
...
@@ -1117,7 +1118,7 @@ def _setup(sys_module, imp_module):
setattr
(
self_module
,
'_os'
,
os_module
)
setattr
(
self_module
,
'_os'
,
os_module
)
setattr
(
self_module
,
'path_sep'
,
path_sep
)
setattr
(
self_module
,
'path_sep'
,
path_sep
)
# Constants
# Constants
setattr
(
self_module
,
'_relax_case'
,
_relax_case
())
setattr
(
self_module
,
'_relax_case'
,
_
make_
relax_case
())
def
_install
(
sys_module
,
imp_module
):
def
_install
(
sys_module
,
imp_module
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment