mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fixed issue #2888. Now the behaviour of pprint when working with nested
structures follows the common sense (and works like in 2.5 and 3.0).
This commit is contained in:
		
							parent
							
								
									8e1c52ac0e
								
							
						
					
					
						commit
						2da91c375b
					
				
					 4 changed files with 17 additions and 2 deletions
				
			
		|  | @ -194,7 +194,7 @@ def _format(self, object, stream, indent, allowance, context, level): | |||
|             else: | ||||
|                 write('(') | ||||
|                 endchar = ')' | ||||
|             if self._indent_per_level > 1: | ||||
|             if self._indent_per_level > 1 and sepLines: | ||||
|                 write((self._indent_per_level - 1) * ' ') | ||||
|             if length: | ||||
|                 context[objid] = 1 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Facundo Batista
						Facundo Batista