Apply Python 3 futurize transform lib2to3.fixes.fix_except
This commit is contained in:
		
							parent
							
								
									8c188cda49
								
							
						
					
					
						commit
						5272ca0674
					
				
					 5 changed files with 6 additions and 6 deletions
				
			
		|  | @ -20,7 +20,7 @@ def mkdir_p(path): | |||
|     # Python doesn't have an analog to `mkdir -p` < Python 3.2. | ||||
|     try: | ||||
|         os.makedirs(path) | ||||
|     except OSError, e: | ||||
|     except OSError as e: | ||||
|         if e.errno == errno.EEXIST and os.path.isdir(path): | ||||
|             pass | ||||
|         else: | ||||
|  | @ -98,6 +98,6 @@ if __name__ == "__main__": | |||
|     finally: | ||||
|         try: | ||||
|             os.remove(lock_path) | ||||
|         except OSError, IOError: | ||||
|         except OSError as IOError: | ||||
|             pass | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Eklavya Sharma
						Eklavya Sharma