]> granicus.if.org Git - python/commitdiff
Convert raise to call exception class. Add whitespace.
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Jul 2002 20:19:08 +0000 (20:19 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 2 Jul 2002 20:19:08 +0000 (20:19 +0000)
Lib/httplib.py

index 5a039e7a1c07faa5389423ecebbe3a3dc7346df1..722a8c6f3e5ba166af804ac828a26ca76929b776 100644 (file)
@@ -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