mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Ran 2to3 over scripts directory.
This commit is contained in:
		
							parent
							
								
									d11ae5d6ec
								
							
						
					
					
						commit
						8efadf5d66
					
				
					 19 changed files with 74 additions and 86 deletions
				
			
		|  | @ -188,7 +188,7 @@ def reformat(self): | |||
|                     stack.append((kw, kw)) | ||||
|                     continue | ||||
|                 # end if | ||||
|                 if next.has_key(kw) and stack: | ||||
|                 if kw in next and stack: | ||||
|                     self.putline(line, len(stack)-1) | ||||
|                     kwa, kwb = stack[-1] | ||||
|                     stack[-1] = kwa, kw | ||||
|  | @ -254,7 +254,7 @@ def complete(self): | |||
|                 m = self.kwprog.match(line) | ||||
|                 if m: | ||||
|                     thiskw = m.group('kw') | ||||
|                     if not next.has_key(thiskw): | ||||
|                     if thiskw not in next: | ||||
|                         thiskw = '' | ||||
|                     # end if | ||||
|                     if thiskw in ('def', 'class'): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl