import re import sys dumbprefixes = { "7th" : "http://7thguard.net/", "b" : "http://babelfish.altavista.com/babelfish/tr/", "bz" : "http://bugzilla.elinks.cz/", "bug" : "http://bugzilla.elinks.cz/", "d" : "http://www.dict.org/", "g" : "http://www.google.com/", "gg" : "http://www.google.com/", "go" : "http://www.google.com/", "fm" : "http://www.freshmeat.net/", "sf" : "http://www.sourceforge.net/", "dbug" : "http://bugs.debian.org/", "dpkg" : "http://packages.debian.org/", "pycur" : "http://www.python.org/doc/current/", "pydev" : "http://www.python.org/dev/doc/devel/", "pyhelp" : "http://starship.python.net/crew/theller/pyhelp.cgi", "pyvault" : "http://www.vex.net/parnassus/", "e2" : "http://www.everything2.org/", "sd" : "http://www.slashdot.org/" } cygwin = re.compile("cygwin\.com") cygwin_sub1 = re.compile('