]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove unused code in packaging.pypi.dist
authorÉric Araujo <merwok@netwok.org>
Thu, 16 Jun 2011 21:50:17 +0000 (23:50 +0200)
committerÉric Araujo <merwok@netwok.org>
Thu, 16 Jun 2011 21:50:17 +0000 (23:50 +0200)
Lib/packaging/pypi/dist.py

index d3824c22e82aea8c985092cc8612d46cb83e4e2a..dbf64592730eb55a31e4f603fa8d6ea3507c586b 100644 (file)
@@ -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