Remove Python 2.4 compat code
Change-Id: Iebc99b020c8e8b65a4121e8044a51aaba1737b2b
This commit is contained in:
parent
8c1ca89062
commit
ccccd46b41
|
@ -23,14 +23,6 @@ import copy
|
|||
from muranoclient.apiclient import exceptions
|
||||
|
||||
|
||||
# Python 2.4 compat
|
||||
try:
|
||||
all
|
||||
except NameError:
|
||||
def all(iterable):
|
||||
return True not in (not x for x in iterable)
|
||||
|
||||
|
||||
def getid(obj):
|
||||
"""Get obj's id or object itself if no id
|
||||
|
||||
|
|
Loading…
Reference in New Issue