mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #5052: make Distutils compatible with 2.3 again.
This commit is contained in:
parent
b31a6d0949
commit
dda92f7f02
7 changed files with 185 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
|
||||
import socket
|
||||
import platform
|
||||
|
@ -16,6 +16,11 @@ import urlparse
|
|||
import cStringIO as StringIO
|
||||
from ConfigParser import ConfigParser
|
||||
|
||||
# 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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue