diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-16 21:50:17 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-16 21:50:17 (GMT) |
commit | 3e85e5427410bce670d516cf662c12413e155c16 (patch) | |
tree | 6fe52e58b29ce8ae76abc51ceef84a8b6e262ec8 | |
parent | 6f67765389f63b49c094ee08017309bcb45d7ed6 (diff) | |
download | cpython-3e85e5427410bce670d516cf662c12413e155c16.zip cpython-3e85e5427410bce670d516cf662c12413e155c16.tar.gz cpython-3e85e5427410bce670d516cf662c12413e155c16.tar.bz2 |
Remove unused code in packaging.pypi.dist
-rw-r--r-- | Lib/packaging/pypi/dist.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py index d3824c2..dbf6459 100644 --- a/Lib/packaging/pypi/dist.py +++ b/Lib/packaging/pypi/dist.py @@ -7,15 +7,13 @@ Release objects contain metadata-related information (see PEP 376); distribution objects contain download-related information. """ -import sys -import mimetypes import re +import hashlib import tempfile import urllib.request import urllib.parse import urllib.error import urllib.parse -import hashlib from shutil import unpack_archive from packaging.errors import IrrationalVersionError @@ -318,7 +316,6 @@ class DistInfo(IndexReference): path = tempfile.mkdtemp() filename = self.download(path) - content_type = mimetypes.guess_type(filename)[0] unpack_archive(filename, path) self._unpacked_dir = path |