parent
							
								
									0b8e0f869a
								
							
						
					
					
						commit
						72d87746c4
					
				|  | @ -6,6 +6,7 @@ to allow further use outside the pylib | ||||||
| """ | """ | ||||||
| 
 | 
 | ||||||
| import py | import py | ||||||
|  | from py.__.code import safe_repr | ||||||
| 
 | 
 | ||||||
| class Presenter(object): | class Presenter(object): | ||||||
|     """ Class used for presentation of various objects, |     """ Class used for presentation of various objects, | ||||||
|  | @ -84,7 +85,7 @@ class Presenter(object): | ||||||
|                 else: |                 else: | ||||||
|                     # This formatting could all be handled by the _repr() function, which is  |                     # This formatting could all be handled by the _repr() function, which is  | ||||||
|                     # only repr.Repr in disguise, so is very configurable. |                     # only repr.Repr in disguise, so is very configurable. | ||||||
|                     str_repr = py.__.code.safe_repr._repr(value) |                     str_repr = safe_repr._repr(value) | ||||||
|                     if len(str_repr) < 70 or not isinstance(value, |                     if len(str_repr) < 70 or not isinstance(value, | ||||||
|                                                 (list, tuple, dict)): |                                                 (list, tuple, dict)): | ||||||
|                         self.out.line("%-10s = %s" %(name, str_repr)) |                         self.out.line("%-10s = %s" %(name, str_repr)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue