[Python-Dev] [Python-checkins] cpython: Fix a failing importlib test under Windows. (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Mon Feb 20 01:51:11 CET 2012
- Previous message: [Python-Dev] Links to last binary builds to download pages
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Feb 20, 2012 at 10:36 AM, brett.cannon <python-checkins at python.org> wrote:
- if sysmodule.platform in CASEINSENSITIVEPLATFORMS: + if any(sysmodule.platform.startswith(x) + for x in CASEINSENSITIVEPLATFORMS):
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
- Previous message: [Python-Dev] Links to last binary builds to download pages
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #14043: Speed up importlib's _FileFinder by at least 8x, and add a new
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]