From 53ec6b02a5f349db874b0ca737db8b69b3e78be2 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sat, 20 Nov 2010 22:01:12 +0100 Subject: [PATCH] split is enough --- gunicorn/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/util.py b/gunicorn/util.py index 8cba9f4f..4d7d7806 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -125,7 +125,7 @@ def parse_address(netloc, default_port=8000): #get port netloc = netloc.split(']')[-1] if ":" in netloc: - port = netloc.rsplit(':', 1)[1] + port = netloc.split(':', 1)[1] if not port.isdigit(): raise RuntimeError("%r is not a valid port number." % port) port = int(port)