mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-121804: Always show error location for SyntaxError's in new repl (#121886)
This commit is contained in:
		
							parent
							
								
									e077b201f4
								
							
						
					
					
						commit
						354d55eb1f
					
				
					 5 changed files with 36 additions and 10 deletions
				
			
		|  | @ -706,7 +706,7 @@ def prepend_syspath(self, filename): | |||
|             del _filename, _sys, _dirname, _dir | ||||
|             \n""".format(filename)) | ||||
| 
 | ||||
|     def showsyntaxerror(self, filename=None): | ||||
|     def showsyntaxerror(self, filename=None, **kwargs): | ||||
|         """Override Interactive Interpreter method: Use Colorizing | ||||
| 
 | ||||
|         Color the offending position instead of printing it and pointing at it | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sergey B Kirpichev
						Sergey B Kirpichev