Commit 641afae6 authored by Christophe Combelles's avatar Christophe Combelles

Fix for python2.4

--HG--
branch : distribute
extra : rebase_source : b4c2fb5521783c03bebcdb52e17c8e0063ab86aa
parent d7dc0ff7
......@@ -32,9 +32,9 @@ class IndexServer(HTTPServer):
def stop(self):
"""self.shutdown is not supported on python < 2.6"""
self._run = False
urllib2.urlopen('http://127.0.0.1:%s/' % self.server_address[1])
urllib2.urlopen('http://127.0.0.1:%s/' % self.server_port)
self.thread.join()
def base_url(self):
port = self.server_address[1]
port = self.server_port
return 'http://127.0.0.1:%s/setuptools/tests/indexes/' % port
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment