A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-February/116646.html below:

Fix a failing importlib test under Windows.

[Python-Dev] [Python-checkins] cpython: Fix a failing importlib test under Windows. [Python-Dev] [Python-checkins] cpython: Fix a failing importlib test under Windows.Nick Coghlan ncoghlan at gmail.com
Mon Feb 20 01:51:11 CET 2012
On Mon, Feb 20, 2012 at 10:36 AM, brett.cannon
<python-checkins at python.org> wrote:
> -    if sys_module.platform in CASE_INSENSITIVE_PLATFORMS:
> +    if any(sys_module.platform.startswith(x)
> +            for x in CASE_INSENSITIVE_PLATFORMS):

Since C_I_P is a tuple, that condition can be written as:
"sys_module.platform.startswith(CASE_INSENSITIVE_PLATFORMS)"

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4