Skip to content
Browse files

flakes

  • Loading branch information...
1 parent 23aebe3 commit 9d7f6a9d1f6b9bc67efa7fcb211297a1c3fe301d @ask committed May 31, 2012
View
3 kombu/connection.py
@@ -16,8 +16,7 @@
import socket
from contextlib import contextmanager
-from copy import copy
-from functools import partial, wraps
+from functools import partial
from itertools import count
from urllib import quote
from Queue import Empty
View
1 kombu/pidbox.py
@@ -9,6 +9,7 @@
"""
from __future__ import absolute_import
+from __future__ import with_statement
import socket
View
3 kombu/serialization.py
@@ -60,11 +60,12 @@ def _decode(t, coding):
try:
from cStringIO import StringIO
except ImportError:
- from StringIO import StringIO
+ from StringIO import StringIO # noqa
def pickle_loads(s, load=pickle_load):
return load(StringIO(s))
+
class SerializerRegistry(object):
"""The registry keeps track of serialization methods."""
View
1 kombu/syn.py
@@ -26,7 +26,6 @@ def select_blocking_method(type):
def _detect_environment():
## -eventlet-
if "eventlet" in sys.modules:
- print("PATH: %r" % (sys.path, ))
try:
from eventlet.patcher import is_monkey_patched as is_eventlet
import socket
View
1 kombu/tests/test_connection.py
@@ -296,7 +296,6 @@ def test__repr__(self):
def test__reduce__(self):
x = pickle.loads(pickle.dumps(self.conn))
- print("SELF: %r" % (self.conn.info(), ))
self.assertDictEqual(x.info(), self.conn.info())
def test_channel_errors(self):
View
2 kombu/transport/__init__.py
@@ -20,7 +20,7 @@
AMQP_ALIAS = "librabbitmq"
if detect_environment() == "default":
try:
- import librabbitmq
+ import librabbitmq # noqa
AMQP_TRANSPORT = "kombu.transport.librabbitmq.Transport" # noqa
AMQP_ALIAS = "amqp" # noqa
except ImportError:
View
2 kombu/utils/eventio.py
@@ -95,7 +95,7 @@ def unregister(self, fd):
self._epoll.unregister(fd)
except socket.error:
pass
- except IOError:
+ except IOError, exc:
if get_errno(exc) != errno.ENOENT:
raise

0 comments on commit 9d7f6a9

Please sign in to comment.
Something went wrong with that request. Please try again.