Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Nov 24, 2011
1 parent c0d11d0 commit b87956d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/backends/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def _get_connection(self):
# This enables the use of replica sets and sharding.
# See pymongo.Connection() for more info.
args = [self.mongodb_host]
if (isinstance(self.mongodb_host, basestring) and
not self.mongodb_host.startswith('mongodb://')):
if isinstance(self.mongodb_host, basestring) \
and not self.mongodb_host.startswith("mongodb://"):
args.append(self.mongodb_port)

self._connection = Connection(*args)
Expand Down

0 comments on commit b87956d

Please sign in to comment.