Skip to content

Commit

Permalink
Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 29, 2018
1 parent 9bf0fbe commit 0c9624f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools/command/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import hashlib
import getpass
import platform

from base64 import standard_b64encode

Expand All @@ -16,6 +15,7 @@
from setuptools.extern.six.moves.urllib.error import HTTPError
from setuptools.extern.six.moves.urllib.parse import urlparse


class upload(orig.upload):
"""
Override default upload behavior to obtain password
Expand Down Expand Up @@ -80,7 +80,7 @@ def upload_file(self, command, pyversion, filename):
'version': meta.get_version(),

# file content
'content': (os.path.basename(filename),content),
'content': (os.path.basename(filename), content),
'filetype': command,
'pyversion': pyversion,
'md5_digest': hashlib.md5(content).hexdigest(),
Expand Down

0 comments on commit 0c9624f

Please sign in to comment.