mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	rstlint: explicitly open files as UTF8
This commit is contained in:
		
							parent
							
								
									c75e2dd4c6
								
							
						
					
					
						commit
						4aa30dc275
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -196,7 +196,7 @@ def main(argv): | ||||||
|                 print('Checking %s...' % fn) |                 print('Checking %s...' % fn) | ||||||
| 
 | 
 | ||||||
|             try: |             try: | ||||||
|                 with open(fn, 'r') as f: |                 with open(fn, 'r', encoding='utf-8') as f: | ||||||
|                     lines = list(f) |                     lines = list(f) | ||||||
|             except (IOError, OSError) as err: |             except (IOError, OSError) as err: | ||||||
|                 print('%s: cannot open: %s' % (fn, err)) |                 print('%s: cannot open: %s' % (fn, err)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Zachary Ware
						Zachary Ware