mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Remove two unneeded attributes in packaging
This commit is contained in:
		
							parent
							
								
									4c0b7070ce
								
							
						
					
					
						commit
						dd2d55c8a1
					
				
					 3 changed files with 4 additions and 7 deletions
				
			
		|  | @ -24,7 +24,7 @@ API | ||||||
|                    prefer_final=False, prefer_source=True, \ |                    prefer_final=False, prefer_source=True, \ | ||||||
|                    hosts=('*',), follow_externals=False, \ |                    hosts=('*',), follow_externals=False, \ | ||||||
|                    mirrors_url=None, mirrors=None, timeout=15, \ |                    mirrors_url=None, mirrors=None, timeout=15, \ | ||||||
|                    mirrors_max_tries=0, verbose=False) |                    mirrors_max_tries=0) | ||||||
| 
 | 
 | ||||||
|       *index_url* is the address of the index to use for requests. |       *index_url* is the address of the index to use for requests. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -176,7 +176,6 @@ def initialize_options(self): | ||||||
|         self.installer = None |         self.installer = None | ||||||
|         self.requested = None |         self.requested = None | ||||||
|         self.no_record = None |         self.no_record = None | ||||||
|         self.no_resources = None |  | ||||||
| 
 | 
 | ||||||
|     # -- Option finalizing methods ------------------------------------- |     # -- Option finalizing methods ------------------------------------- | ||||||
|     # (This is rather more involved than for most commands, |     # (This is rather more involved than for most commands, | ||||||
|  |  | ||||||
|  | @ -119,10 +119,9 @@ class Crawler(BaseClient): | ||||||
|     def __init__(self, index_url=DEFAULT_SIMPLE_INDEX_URL, prefer_final=False, |     def __init__(self, index_url=DEFAULT_SIMPLE_INDEX_URL, prefer_final=False, | ||||||
|                  prefer_source=True, hosts=DEFAULT_HOSTS, |                  prefer_source=True, hosts=DEFAULT_HOSTS, | ||||||
|                  follow_externals=False, mirrors_url=None, mirrors=None, |                  follow_externals=False, mirrors_url=None, mirrors=None, | ||||||
|                  timeout=SOCKET_TIMEOUT, mirrors_max_tries=0, verbose=False): |                  timeout=SOCKET_TIMEOUT, mirrors_max_tries=0): | ||||||
|         super(Crawler, self).__init__(prefer_final, prefer_source) |         super(Crawler, self).__init__(prefer_final, prefer_source) | ||||||
|         self.follow_externals = follow_externals |         self.follow_externals = follow_externals | ||||||
|         self.verbose = verbose |  | ||||||
| 
 | 
 | ||||||
|         # mirroring attributes. |         # mirroring attributes. | ||||||
|         parsed = urllib.parse.urlparse(index_url) |         parsed = urllib.parse.urlparse(index_url) | ||||||
|  | @ -322,7 +321,6 @@ def _process_url(self, url, project_name=None, follow_links=True): | ||||||
|                                 infos = get_infos_from_url(link, project_name, |                                 infos = get_infos_from_url(link, project_name, | ||||||
|                                             is_external=self.index_url not in url) |                                             is_external=self.index_url not in url) | ||||||
|                             except CantParseArchiveName as e: |                             except CantParseArchiveName as e: | ||||||
|                                 if self.verbose: |  | ||||||
|                                 logger.warning( |                                 logger.warning( | ||||||
|                                     "version has not been parsed: %s", e) |                                     "version has not been parsed: %s", e) | ||||||
|                             else: |                             else: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Éric Araujo
						Éric Araujo