Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a384652d
Commit
a384652d
authored
May 10, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop support for Python 2.4 in upload command.
parent
6f71726e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Lib/distutils/command/upload.py
Lib/distutils/command/upload.py
+2
-8
No files found.
Lib/distutils/command/upload.py
View file @
a384652d
...
...
@@ -5,10 +5,10 @@ Implements the Distutils 'upload' subcommand (upload package to a package
index).
"""
import
sys
import
os
import
io
import
platform
import
hashlib
from
base64
import
standard_b64encode
from
urllib.request
import
urlopen
,
Request
,
HTTPError
from
urllib.parse
import
urlparse
...
...
@@ -17,12 +17,6 @@ from distutils.core import PyPIRCCommand
from
distutils.spawn
import
spawn
from
distutils
import
log
# 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"
...
...
@@ -106,7 +100,7 @@ class upload(PyPIRCCommand):
'content'
:
(
os
.
path
.
basename
(
filename
),
content
),
'filetype'
:
command
,
'pyversion'
:
pyversion
,
'md5_digest'
:
md5
(
content
).
hexdigest
(),
'md5_digest'
:
hashlib
.
md5
(
content
).
hexdigest
(),
# additional meta-data
'metadata_version'
:
'1.0'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment