summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-07-02 20:19:08 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-07-02 20:19:08 (GMT)
commitfbd79944a8ed747048d20cacea4d6df2b8f930ef (patch)
tree4111fa07d3599e48e78c175e600831f01451e6f8 /Lib
parent4e54730ed5e35988d944bb401b8624daf899b1a5 (diff)
downloadcpython-fbd79944a8ed747048d20cacea4d6df2b8f930ef.zip
cpython-fbd79944a8ed747048d20cacea4d6df2b8f930ef.tar.gz
cpython-fbd79944a8ed747048d20cacea4d6df2b8f930ef.tar.bz2
Convert raise to call exception class. Add whitespace.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/httplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 5a039e7..722a8c6 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -368,7 +368,7 @@ class HTTPConnection:
try:
port = int(host[i+1:])
except ValueError:
- raise InvalidURL, "nonnumeric port: '%s'"%host[i+1:]
+ raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
host = host[:i]
else:
port = self.default_port