summaryrefslogtreecommitdiff
path: root/kombu/utils/compat.py
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2012-11-09 10:55:02 +0000
committerAsk Solem <ask@celeryproject.org>2012-11-12 12:06:06 +0000
commit471c1c446bb97b5a40154b7958c4e12782b73b58 (patch)
tree4ff88eaeacb08c65cdbac219804d924ac3d4c690 /kombu/utils/compat.py
parent7f9b38ff8bd59540f5304fbe391fd0987b48c805 (diff)
downloadkombu-471c1c446bb97b5a40154b7958c4e12782b73b58.tar.gz
Started dual Py3/Py2 codebase
Diffstat (limited to 'kombu/utils/compat.py')
-rw-r--r--kombu/utils/compat.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/kombu/utils/compat.py b/kombu/utils/compat.py
index 6f5b0317..2ae11624 100644
--- a/kombu/utils/compat.py
+++ b/kombu/utils/compat.py
@@ -24,43 +24,12 @@ else:
from StringIO import StringIO # noqa
BytesIO = WhateverIO = StringIO # noqa
-############## __builtins__.next #############################################
-try:
- next = next
-except NameError:
- def next(it, *args): # noqa
- try:
- return it.next()
- except StopIteration:
- if not args:
- raise
- return args[0]
-
############## collections.OrderedDict #######################################
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict # noqa
-############## queue.LifoQueue ##############################################
-from Queue import Queue
-
-
-class LifoQueue(Queue):
-
- def _init(self, maxsize):
- self.queue = []
- self.maxsize = maxsize
-
- def _qsize(self, len=len):
- return len(self.queue)
-
- def _put(self, item):
- self.queue.append(item)
-
- def _get(self):
- return self.queue.pop()
-
############## logging.handlers.WatchedFileHandler ##########################
import logging
import os