mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-119553: Fix console when pressing Ctrl-C within a multiline block (#120075)
This commit is contained in:
		
							parent
							
								
									4055577221
								
							
						
					
					
						commit
						69b3e8ea56
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -149,7 +149,7 @@ def more_lines(unicodetext: str) -> bool: | |||
|             assert not more | ||||
|             input_n += 1 | ||||
|         except KeyboardInterrupt: | ||||
|             console.write("\nKeyboardInterrupt\n") | ||||
|             console.write("KeyboardInterrupt\n") | ||||
|             console.resetbuffer() | ||||
|         except MemoryError: | ||||
|             console.write("\nMemoryError\n") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lysandros Nikolaou
						Lysandros Nikolaou