To capture a backreference is good.

This commit is contained in:
Jeremy Fincher 2004-09-30 04:15:48 +00:00
parent 4cc1e4ba04
commit cb9986f0ac

View File

@ -49,7 +49,7 @@ class WebError(Exception):
# XXX We should tighten this up a bit.
urlRe = re.compile(r"(\w+://[^\])>\s]+)", re.I)
httpUrlRe = re.compile(r"https?://[^\])>\s]", re.I)
httpUrlRe = re.compile(r"(https?://[^\])>\s]+)", re.I)
REFUSED = 'Connection refused.'
TIMED_OUT = 'Connection timed out.'