diff options
author | andy <andy@whiskeymedia.com> | 2013-04-22 21:57:26 -0700 |
---|---|---|
committer | andy <andy@whiskeymedia.com> | 2013-04-22 21:57:26 -0700 |
commit | c968d78bfb3a977ce3b14fab7196f19cec645bdf (patch) | |
tree | 23bcba305ba849ac60589b79f804a707b399022d /redis/_compat.py | |
parent | b16d00993d61aa53304342256f8280bdae6ca21b (diff) | |
download | redis-py-c968d78bfb3a977ce3b14fab7196f19cec645bdf.tar.gz |
pep8
Diffstat (limited to 'redis/_compat.py')
-rw-r--r-- | redis/_compat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redis/_compat.py b/redis/_compat.py index 4a8a14c..2f7cafa 100644 --- a/redis/_compat.py +++ b/redis/_compat.py @@ -49,16 +49,17 @@ else: bytes = bytes long = int -try: # Python 3 +try: # Python 3 from queue import LifoQueue, Empty, Full except ImportError: from Queue import Empty, Full - try: # Python 2.6 - 2.7 + try: # Python 2.6 - 2.7 from Queue import LifoQueue - except ImportError: # Python 2.5 + except ImportError: # Python 2.5 from Queue import Queue # From the Python 2.7 lib. Python 2.5 already extracted the core # methods to aid implementating different queue organisations. + class LifoQueue(Queue): """Override queue methods to implement a last-in first-out queue.""" @@ -74,4 +75,3 @@ except ImportError: def _get(self): return self.queue.pop() - |