From fbd79944a8ed747048d20cacea4d6df2b8f930ef Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Tue, 2 Jul 2002 20:19:08 +0000 Subject: Convert raise to call exception class. Add whitespace. --- Lib/httplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/httplib.py') diff --git a/Lib/httplib.py b/Lib/httplib.py index 5a039e7a1c..722a8c6f3e 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 -- cgit v1.2.1