From: Éric Araujo Date: Thu, 16 Jun 2011 21:50:17 +0000 (+0200) Subject: Remove unused code in packaging.pypi.dist X-Git-Tag: v3.3.0a1~2102^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e85e5427410bce670d516cf662c12413e155c16;p=thirdparty%2FPython%2Fcpython.git Remove unused code in packaging.pypi.dist --- diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py index d3824c22e82a..dbf64592730e 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