Re: [Python-Dev] [Python-checkins] cpython: Fix a failing importlib test under Windows.
Feb. 20, 2012
12:51 a.m.
On Mon, Feb 20, 2012 at 10:36 AM, brett.cannon <python-checkins@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@gmail.com | Brisbane, Australia
5195
Age (days ago)
5195
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nick Coghlan