mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fix "#define ... not found" error when using the default file name
Also make that error message end with a newline.
This commit is contained in:
		
							parent
							
								
									0c7fcd210f
								
							
						
					
					
						commit
						221df1e0ef
					
				@ -398,8 +398,8 @@ if __name__ == '__main__':
 | 
				
			|||||||
        elif args.command == 'set':
 | 
					        elif args.command == 'set':
 | 
				
			||||||
            if not args.force and args.symbol not in config.settings:
 | 
					            if not args.force and args.symbol not in config.settings:
 | 
				
			||||||
                sys.stderr.write("A #define for the symbol {} "
 | 
					                sys.stderr.write("A #define for the symbol {} "
 | 
				
			||||||
                                 "was not found in {}"
 | 
					                                 "was not found in {}\n"
 | 
				
			||||||
                                 .format(args.symbol, args.file))
 | 
					                                 .format(args.symbol, config.filename))
 | 
				
			||||||
                return 1
 | 
					                return 1
 | 
				
			||||||
            config.set(args.symbol, value=args.value)
 | 
					            config.set(args.symbol, value=args.value)
 | 
				
			||||||
        elif args.command == 'unset':
 | 
					        elif args.command == 'unset':
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user