Merge "Remove Python 2.4 compat shim"

This commit is contained in:
Jenkins
2014-11-18 16:06:48 +00:00
committed by Gerrit Code Review

View File

@@ -33,14 +33,6 @@ from cinderclient import utils
Resource = common_base.Resource
# 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