Merge "Remove Python 2.4 compatability for all()"
This commit is contained in:
commit
2af0656bf9
@ -17,13 +17,6 @@
|
|||||||
Base utilities to build API operation managers and objects on top of.
|
Base utilities to build API operation managers and objects on top of.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Python 2.4 compat
|
|
||||||
try:
|
|
||||||
all
|
|
||||||
except NameError:
|
|
||||||
def all(iterable):
|
|
||||||
return True not in (not x for x in iterable)
|
|
||||||
|
|
||||||
|
|
||||||
def getid(obj):
|
def getid(obj):
|
||||||
"""Abstracts the common pattern of allowing both an object or an
|
"""Abstracts the common pattern of allowing both an object or an
|
||||||
|
Loading…
x
Reference in New Issue
Block a user