From 5bf13e1e2bb508468dc3f8f042d94022f179c475 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Fri, 19 Sep 2014 10:30:29 -0400 Subject: [PATCH] Remove Python 2.4 compat shim It's clear that we aren't testing against Python 2.4 (not supported by dependencies like six) and no other client projects have this, so we should drop it. Change-Id: I14108964c0261d9144ced16cee7101d14ca7e644 --- cinderclient/base.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cinderclient/base.py b/cinderclient/base.py index 5274f24ce..a193fa3a7 100644 --- a/cinderclient/base.py +++ b/cinderclient/base.py @@ -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