mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Merged revisions 70017 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70017 | tarek.ziade | 2009-02-27 13:53:34 +0100 (Fri, 27 Feb 2009) | 1 line Issue #5052: make Distutils compatible with 2.3 again. ........
This commit is contained in:
parent
89fc2b7821
commit
38e3d51ea7
7 changed files with 186 additions and 38 deletions
|
@ -6,7 +6,7 @@ from distutils.errors import *
|
|||
from distutils.core import PyPIRCCommand
|
||||
from distutils.spawn import spawn
|
||||
from distutils import log
|
||||
from hashlib import md5
|
||||
import sys
|
||||
import os, io
|
||||
import socket
|
||||
import platform
|
||||
|
@ -15,6 +15,12 @@ import http.client as httpclient
|
|||
import base64
|
||||
import urllib.parse
|
||||
|
||||
# this keeps compatibility for 2.3 and 2.4
|
||||
if sys.version < "2.5":
|
||||
from md5 import md5
|
||||
else:
|
||||
from hashlib import md5
|
||||
|
||||
class upload(PyPIRCCommand):
|
||||
|
||||
description = "upload binary package to PyPI"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue