mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	bpo-45975: IDLE - Remove extraneous parens (GH-31107)
mistakenly included in 3 files in previous PR
and backported both to 3.10 and 3.9.
(cherry picked from commit 916d0d822c)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
			
			
This commit is contained in:
		
							parent
							
								
									e8258608c2
								
							
						
					
					
						commit
						cf7cb1a2bf
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -179,7 +179,7 @@ def find_good_parse_start(self, is_char_in_string): | ||||||
|         # Peeking back worked; look forward until _synchre no longer |         # Peeking back worked; look forward until _synchre no longer | ||||||
|         # matches. |         # matches. | ||||||
|         i = pos + 1 |         i = pos + 1 | ||||||
|         while (m := _synchre(code, i)): |         while m := _synchre(code, i): | ||||||
|             s, i = m.span() |             s, i = m.span() | ||||||
|             if not is_char_in_string(s): |             if not is_char_in_string(s): | ||||||
|                 pos = s |                 pos = s | ||||||
|  |  | ||||||
|  | @ -156,8 +156,8 @@ def replace_all(self, event=None): | ||||||
|         first = last = None |         first = last = None | ||||||
|         # XXX ought to replace circular instead of top-to-bottom when wrapping |         # XXX ought to replace circular instead of top-to-bottom when wrapping | ||||||
|         text.undo_block_start() |         text.undo_block_start() | ||||||
|         while (res := self.engine.search_forward( |         while res := self.engine.search_forward( | ||||||
|                 text, prog, line, col, wrap=False, ok=ok)): |                 text, prog, line, col, wrap=False, ok=ok): | ||||||
|             line, m = res |             line, m = res | ||||||
|             chars = text.get("%d.0" % line, "%d.0" % (line+1)) |             chars = text.get("%d.0" % line, "%d.0" % (line+1)) | ||||||
|             orig = m.group() |             orig = m.group() | ||||||
|  |  | ||||||
|  | @ -468,7 +468,7 @@ def read(self, size=-1): | ||||||
|         result = self._line_buffer |         result = self._line_buffer | ||||||
|         self._line_buffer = '' |         self._line_buffer = '' | ||||||
|         if size < 0: |         if size < 0: | ||||||
|             while (line := self.shell.readline()): |             while line := self.shell.readline(): | ||||||
|                 result += line |                 result += line | ||||||
|         else: |         else: | ||||||
|             while len(result) < size: |             while len(result) < size: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)