diff options
author | Sean Reifschneider <jafo@tummy.com> | 2010-12-15 21:53:58 -0700 |
---|---|---|
committer | Sean Reifschneider <jafo@tummy.com> | 2010-12-15 21:53:58 -0700 |
commit | 6d6c2afd8e3d88b9f9e0648372e1a49eb1e5819d (patch) | |
tree | c482f0ab315ba88faae78463822c8434e881a19d /memcache.py | |
parent | 6c9aa30ac7c12d77cd7b6d97f4ba18d783e6367a (diff) | |
download | python-memcached-6d6c2afd8e3d88b9f9e0648372e1a49eb1e5819d.tar.gz |
Bug #529855: Server host can now be bare host without ":<port>".
Diffstat (limited to 'memcache.py')
-rw-r--r-- | memcache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache.py b/memcache.py index a384f2e..aa31371 100644 --- a/memcache.py +++ b/memcache.py @@ -968,7 +968,7 @@ class _Host(object): if not m: m = re.match(r'^(?P<proto>inet):' r'(?P<host>[^:]+)(:(?P<port>[0-9]+))?$', host) - if not m: m = re.match(r'^(?P<host>[^:]+):(?P<port>[0-9]+)$', host) + if not m: m = re.match(r'^(?P<host>[^:]+)(:(?P<port>[0-9]+))?$', host) if not m: raise ValueError('Unable to parse connection string: "%s"' % host) |