mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
conversion. (Patch reviewed by David Murray.)
This commit is contained in:
		
							parent
							
								
									528d9f6ead
								
							
						
					
					
						commit
						8b5eb2f813
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -325,7 +325,7 @@ def _main():
 | 
			
		|||
    else:
 | 
			
		||||
        path = []
 | 
			
		||||
    dict = readmodule_ex(mod, path)
 | 
			
		||||
    objs = dict.values()
 | 
			
		||||
    objs = list(dict.values())
 | 
			
		||||
    objs.sort(key=lambda a: getattr(a, 'lineno', 0))
 | 
			
		||||
    for obj in objs:
 | 
			
		||||
        if isinstance(obj, Class):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,6 +16,9 @@ Core and Builtins
 | 
			
		|||
Library
 | 
			
		||||
-------
 | 
			
		||||
 | 
			
		||||
- Issue #11020: Command-line pyclbr was broken because of missing 2-to-3
 | 
			
		||||
  conversion.
 | 
			
		||||
 | 
			
		||||
- Issue #11019: Fixed BytesGenerator so that it correctly handles a Message
 | 
			
		||||
  with a None body.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue