mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixed 2.x-ism.
This commit is contained in:
parent
bd87552a34
commit
886b40aa8f
1 changed files with 2 additions and 2 deletions
|
@ -804,8 +804,8 @@ def _parse_guards(guards):
|
||||||
# Returns a tuple ({platform_name: run_me}, default_value)
|
# Returns a tuple ({platform_name: run_me}, default_value)
|
||||||
if not guards:
|
if not guards:
|
||||||
return ({'cpython': True}, False)
|
return ({'cpython': True}, False)
|
||||||
is_true = guards.values()[0]
|
is_true = list(guards.values())[0]
|
||||||
assert guards.values() == [is_true] * len(guards) # all True or all False
|
assert list(guards.values()) == [is_true] * len(guards) # all True or all False
|
||||||
return (guards, not is_true)
|
return (guards, not is_true)
|
||||||
|
|
||||||
# Use the following check to guard CPython's implementation-specific tests --
|
# Use the following check to guard CPython's implementation-specific tests --
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue