mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-04 10:21:25 +01:00 
			
		
		
		
	moveconfig: Use an encoding with open()
Fix pylint warnings about needing an explicit character encoding. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									b774ba52c6
								
							
						
					
					
						commit
						e6c686f405
					
				@ -1457,12 +1457,14 @@ def do_scan_source(path, do_update):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # Write out the updated information
 | 
					    # Write out the updated information
 | 
				
			||||||
    if do_update:
 | 
					    if do_update:
 | 
				
			||||||
        with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w') as out:
 | 
					        with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w',
 | 
				
			||||||
 | 
					                  encoding='utf-8') as out:
 | 
				
			||||||
            print('# These options should not be enabled in SPL builds\n',
 | 
					            print('# These options should not be enabled in SPL builds\n',
 | 
				
			||||||
                  file=out)
 | 
					                  file=out)
 | 
				
			||||||
            for item in sorted(spl_not_found):
 | 
					            for item in sorted(spl_not_found):
 | 
				
			||||||
                print(item, file=out)
 | 
					                print(item, file=out)
 | 
				
			||||||
        with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w') as out:
 | 
					        with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w',
 | 
				
			||||||
 | 
					                  encoding='utf-8') as out:
 | 
				
			||||||
            print('# These options should not be enabled in Proper builds\n',
 | 
					            print('# These options should not be enabled in Proper builds\n',
 | 
				
			||||||
                  file=out)
 | 
					                  file=out)
 | 
				
			||||||
            for item in sorted(proper_not_found):
 | 
					            for item in sorted(proper_not_found):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user