Permalink
Browse files

pyflakes

  • Loading branch information...
ask committed Apr 3, 2012
1 parent f87f758 commit cab32ed427648a84d6fd94a63810d9188170d908
Showing with 5 additions and 8 deletions.
  1. +1 −1 .gitignore
  2. +1 −5 kombu/tests/test_transport_mongodb.py
  3. +0 −1 kombu/tests/test_transport_redis.py
  4. +3 −1 kombu/transport/mongodb.py
View
@@ -7,7 +7,7 @@
settings_local.py
.build
build
-.*.sw[po]
+.*.sw[pon]
dist/
*.egg-info
doc/__build/*
@@ -1,12 +1,8 @@
from __future__ import absolute_import
-import sys
-
from kombu.connection import BrokerConnection
-from .utils import TestCase
-from .utils import mask_modules, Mock
-from .utils import Mock, skip_if_not_module
+from .utils import TestCase, skip_if_not_module
class MockConnection(dict):
@@ -442,7 +442,6 @@ def test_empty_queues_key(self):
self.assertListEqual(channel.get_table('celery'),
[('celery', '', 'celery')])
-
# ... then for some reason, the _kombu.binding.celery key gets lost
channel.client.srem(key)
@@ -121,7 +121,9 @@ def _open(self):
# At this point we expect the hostname to be something like
# (considering replica set form too):
- # mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[?options]]
+ #
+ # mongodb://[username:password@]host1[:port1][,host2[:port2],
+ # ...[,hostN[:portN]]][/[?options]]
mongoconn = Connection(host=hostname)
version = mongoconn.server_info()["version"]
if tuple(map(int, version.split(".")[:2])) < (1, 3):

0 comments on commit cab32ed

Please sign in to comment.