PEP8: applied even more rules
This commit is contained in:
		
							parent
							
								
									2514d2635e
								
							
						
					
					
						commit
						9e1a5b8455
					
				
					 77 changed files with 227 additions and 223 deletions
				
			
		| 
						 | 
				
			
			@ -142,7 +142,7 @@ def win_service_set_status(handle, status_code):
 | 
			
		|||
 | 
			
		||||
def win_service_main(service_name, real_main, argc, argv_raw):
 | 
			
		||||
    try:
 | 
			
		||||
        #args = [argv_raw[i].value for i in range(argc)]
 | 
			
		||||
        # args = [argv_raw[i].value for i in range(argc)]
 | 
			
		||||
        stop_event = threading.Event()
 | 
			
		||||
        handler = HandlerEx(functools.partial(stop_event, win_service_handler))
 | 
			
		||||
        h = advapi32.RegisterServiceCtrlHandlerExW(service_name, handler, None)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,7 +30,7 @@ def build_completion(opt_parser):
 | 
			
		|||
    for group in opt_parser.option_groups:
 | 
			
		||||
        for option in group.option_list:
 | 
			
		||||
            long_option = option.get_opt_string().strip('-')
 | 
			
		||||
            help_msg = shell_quote([option.help])
 | 
			
		||||
            shell_quote([option.help])
 | 
			
		||||
            complete_cmd = ['complete', '--command', 'youtube-dl', '--long-option', long_option]
 | 
			
		||||
            if option._short_opts:
 | 
			
		||||
                complete_cmd += ['--short-option', option._short_opts[0].strip('-')]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue