mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Fix wrong usage of "except X, Y:".
This commit is contained in:
		
							parent
							
								
									7ae6018788
								
							
						
					
					
						commit
						b3cda98dd1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -453,7 +453,7 @@ def _check_duration(option, opt, value):
 | 
			
		|||
            return int(value)
 | 
			
		||||
        else:
 | 
			
		||||
            return int(value[:-1]) * _time_units[value[-1]]
 | 
			
		||||
    except ValueError, IndexError:
 | 
			
		||||
    except (ValueError, IndexError):
 | 
			
		||||
        raise OptionValueError(
 | 
			
		||||
            'option %s: invalid duration: %r' % (opt, value))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue