def main(): print init_info() certutil.init() server_address = ("", config.listen_port) httpd = LocalProxyServer(server_address, LocalProxyHandler) print "获取更新信息当中..." print "~~%s~~" % urllib2.urlopen(gaeServer + "getupdate").read() print "server is running..." httpd.serve_forever()
def main(): print init_info() certutil.init() server_address = ('', config.listen_port) httpd = LocalProxyServer(server_address, LocalProxyHandler) print '获取更新信息当中...' print '~~%s~~' % urllib2.urlopen(gaeServer + 'getupdate').read() print 'server is running...' httpd.serve_forever()