Permalink
Browse files

Small cleanup for PYTHON-297

  • Loading branch information...
rozza committed Oct 24, 2012
1 parent 7577a19 commit 86469cb02125a5cd44a31be7562b7e5c5769c272
Showing with 1 addition and 1 deletion.
  1. +1 −1 pymongo/uri_parser.py
View
@@ -248,7 +248,7 @@ def parse_uri(uri, default_port=DEFAULT_PORT):
try:
parse_uri('%s%s' % (SCHEME, host_part))
except (ConfigurationError, InvalidURI):
- host_part = "%s%s%s" % (host_part, _, path_part)
+ host_part = scheme_free
path_part = ""
else:
host_part, _, path_part = _partition(scheme_free, '/')

0 comments on commit 86469cb

Please sign in to comment.