mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Remove unused code in packaging.pypi.dist
This commit is contained in:
		
							parent
							
								
									6f67765389
								
							
						
					
					
						commit
						3e85e54274
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -7,15 +7,13 @@ Release objects contain metadata-related information (see PEP 376);
 | 
				
			||||||
distribution objects contain download-related information.
 | 
					distribution objects contain download-related information.
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import sys
 | 
					 | 
				
			||||||
import mimetypes
 | 
					 | 
				
			||||||
import re
 | 
					import re
 | 
				
			||||||
 | 
					import hashlib
 | 
				
			||||||
import tempfile
 | 
					import tempfile
 | 
				
			||||||
import urllib.request
 | 
					import urllib.request
 | 
				
			||||||
import urllib.parse
 | 
					import urllib.parse
 | 
				
			||||||
import urllib.error
 | 
					import urllib.error
 | 
				
			||||||
import urllib.parse
 | 
					import urllib.parse
 | 
				
			||||||
import hashlib
 | 
					 | 
				
			||||||
from shutil import unpack_archive
 | 
					from shutil import unpack_archive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from packaging.errors import IrrationalVersionError
 | 
					from packaging.errors import IrrationalVersionError
 | 
				
			||||||
| 
						 | 
					@ -318,7 +316,6 @@ class DistInfo(IndexReference):
 | 
				
			||||||
                path = tempfile.mkdtemp()
 | 
					                path = tempfile.mkdtemp()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            filename = self.download(path)
 | 
					            filename = self.download(path)
 | 
				
			||||||
            content_type = mimetypes.guess_type(filename)[0]
 | 
					 | 
				
			||||||
            unpack_archive(filename, path)
 | 
					            unpack_archive(filename, path)
 | 
				
			||||||
            self._unpacked_dir = path
 | 
					            self._unpacked_dir = path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue