From dcea5173b5af0b08da96b79dd3c8e6865401a90e Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Tue, 1 Jun 2010 19:30:32 +0200 Subject: Make a decorator for PyPIServer mock, and starting some tests for pypi.simple. Also updated some code to be 2.4 and 2.5 compatible. --- src/distutils2/command/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/distutils2/command') diff --git a/src/distutils2/command/upload.py b/src/distutils2/command/upload.py index fb925ee..14fe119 100644 --- a/src/distutils2/command/upload.py +++ b/src/distutils2/command/upload.py @@ -160,7 +160,7 @@ class upload(PyPIRCCommand): # send the data try: result = urlopen(request) - status = result.getcode() + status = result.code reason = result.msg except socket.error, e: self.announce(str(e), log.ERROR) -- cgit v1.2.1