diff options
author | Ask Solem <ask@celeryproject.org> | 2011-09-07 15:21:47 +0100 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2011-09-07 15:21:47 +0100 |
commit | 66ef95038ffb3351592623309119946418c639bf (patch) | |
tree | c8189a6f578d6ee9196e1968f6c15be460fbc0bd /kombu/utils/compat.py | |
parent | 0b29991566b3d510d39ac61861576ec3e2ef1ae7 (diff) | |
download | kombu-66ef95038ffb3351592623309119946418c639bf.tar.gz |
2.0-devel: No longer supports Python 2.4
Diffstat (limited to 'kombu/utils/compat.py')
-rw-r--r-- | kombu/utils/compat.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/kombu/utils/compat.py b/kombu/utils/compat.py index 4bd2386e..e492c4fc 100644 --- a/kombu/utils/compat.py +++ b/kombu/utils/compat.py @@ -1,29 +1,5 @@ import sys -############## __builtin__.all ############################################## - -try: - all([True]) - all = all -except NameError: - def all(iterable): # noqa - for item in iterable: - if not item: - return False - return True - -############## __builtin__.any ############################################## - -try: - any([True]) - any = any -except NameError: - def any(iterable): # noqa - for item in iterable: - if item: - return True - return False - ############## collections.OrderedDict ####################################### import weakref |