def analysisPort(host): host, port = urllib.splitport(host) if port is None: return 80 return port #??filename