mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +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
				
			
		|  | @ -163,7 +163,7 @@ def parsedir(dir, modify): | |||
|     nok = nwarn = nbad = 0 | ||||
| 
 | ||||
|     # find all numeric file names and sort them | ||||
|     files = filter(lambda fn, pat=pat: pat.match(fn) is not None, os.listdir('.')) | ||||
|     files = list(filter(lambda fn, pat=pat: pat.match(fn) is not None, os.listdir('.'))) | ||||
|     files.sort(sort_numeric) | ||||
| 
 | ||||
|     for fn in files: | ||||
|  | @ -198,7 +198,7 @@ def parsedir(dir, modify): | |||
|                 date = '%s %02d' % (calendar.month_abbr[mm], dd) | ||||
|             except: | ||||
|                 date = '??????' | ||||
|             if not errordict.has_key(e): | ||||
|             if e not in errordict: | ||||
|                 errordict[e] = 1 | ||||
|                 errorfirst[e] = '%s (%s)' % (fn, date) | ||||
|             else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl