We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 881535b + f8f3190 commit 7788838Copy full SHA for 7788838
Lib/importlib/_bootstrap.py
@@ -23,7 +23,7 @@
23
24
25
def _make_relax_case():
26
- if any(map(sys.platform.startswith, CASE_INSENSITIVE_PLATFORMS)):
+ if sys.platform.startswith(CASE_INSENSITIVE_PLATFORMS):
27
def _relax_case():
28
"""True if filenames must be checked case-insensitively."""
29
return b'PYTHONCASEOK' in _os.environ
@@ -163,7 +163,7 @@ def _wrap(new, old):
163
def verbose_message(message, *args):
164
"""Print the message to stderr if -v/PYTHONVERBOSE is turned on."""
165
if sys.flags.verbose:
166
- if not message.startswith('#') and not message.startswith('import '):
+ if not message.startswith(('#', 'import ')):
167
message = '# ' + message
168
print(message.format(*args), file=sys.stderr)
169
0 commit comments