mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.13] gh-121497: Make Pyrepl respect correctly the history with input hook set (GH-121498) (#121703)
gh-121497: Make Pyrepl respect correctly the history with input hook set (GH-121498)
(cherry picked from commit 4e36dd7d87)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									de51ee0c23
								
							
						
					
					
						commit
						62572f10aa
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -383,6 +383,8 @@ def get_event(self, block: bool = True) -> Event | None: | |||
|         Returns: | ||||
|         - Event: Event object from the event queue. | ||||
|         """ | ||||
|         if not block and not self.wait(timeout=0): | ||||
|             return None | ||||
|         while self.event_queue.empty(): | ||||
|             while True: | ||||
|                 try: | ||||
|  | @ -397,8 +399,6 @@ def get_event(self, block: bool = True) -> Event | None: | |||
|                         raise | ||||
|                 else: | ||||
|                     break | ||||
|             if not block: | ||||
|                 break | ||||
|         return self.event_queue.get() | ||||
| 
 | ||||
|     def wait(self, timeout: float | None = None) -> bool: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)