Skip to content

Commit 7788838

Browse files
committed
merge
2 parents 881535b + f8f3190 commit 7788838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/importlib/_bootstrap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
def _make_relax_case():
26-
if any(map(sys.platform.startswith, CASE_INSENSITIVE_PLATFORMS)):
26+
if sys.platform.startswith(CASE_INSENSITIVE_PLATFORMS):
2727
def _relax_case():
2828
"""True if filenames must be checked case-insensitively."""
2929
return b'PYTHONCASEOK' in _os.environ
@@ -163,7 +163,7 @@ def _wrap(new, old):
163163
def verbose_message(message, *args):
164164
"""Print the message to stderr if -v/PYTHONVERBOSE is turned on."""
165165
if sys.flags.verbose:
166-
if not message.startswith('#') and not message.startswith('import '):
166+
if not message.startswith(('#', 'import ')):
167167
message = '# ' + message
168168
print(message.format(*args), file=sys.stderr)
169169

0 commit comments

Comments
 (0)