remove py24 compatible code

Change-Id: If62986b3ba913776ee6b9328a10e358e0e14e7cd
This commit is contained in:
ZhiQiang Fan 2016-01-08 09:40:36 +08:00
parent c4abadfee8
commit d2feb8871b

View File

@ -23,13 +23,6 @@ from ceilometerclient import exc
from ceilometerclient.openstack.common.apiclient import base
from ceilometerclient.openstack.common.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):
"""Extracts object ID.