Remove Python 2.4 all() implementation
Python 2.4 is not supported neither is being tested so I think it makes sense to remove it. Change-Id: Ie3d736f9756529c6f33d0c249bf18afabad9a041
This commit is contained in:
parent
1b1dd31067
commit
ab3a115024
@ -22,14 +22,6 @@ import copy
|
||||
import six
|
||||
|
||||
|
||||
# Python 2.4 compat
|
||||
try:
|
||||
all
|
||||
except NameError:
|
||||
def all(iterable):
|
||||
return True not in (not x for x in iterable)
|
||||
|
||||
|
||||
def getid(obj):
|
||||
"""Abstracts the common pattern of allowing both an object or an
|
||||
object's ID (UUID) as a parameter when dealing with relationships.
|
||||
|
Loading…
x
Reference in New Issue
Block a user