mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Use a local name (it was intended to be used but overlooked).
This was caught in the distutils2 repo by pyflakes.
This commit is contained in:
		
							parent
							
								
									7724a6c10c
								
							
						
					
					
						commit
						0cfb81d13f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -307,9 +307,9 @@ def _get_delegate(self): | ||||||
|     def get_filename(self, fullname=None): |     def get_filename(self, fullname=None): | ||||||
|         fullname = self._fix_name(fullname) |         fullname = self._fix_name(fullname) | ||||||
|         mod_type = self.etc[2] |         mod_type = self.etc[2] | ||||||
|         if self.etc[2]==imp.PKG_DIRECTORY: |         if mod_type==imp.PKG_DIRECTORY: | ||||||
|             return self._get_delegate().get_filename() |             return self._get_delegate().get_filename() | ||||||
|         elif self.etc[2] in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION): |         elif mod_type in (imp.PY_SOURCE, imp.PY_COMPILED, imp.C_EXTENSION): | ||||||
|             return self.filename |             return self.filename | ||||||
|         return None |         return None | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Éric Araujo
						Éric Araujo