mirror of
				https://github.com/arsenetar/send2trash.git
				synced 2025-09-11 18:08:16 +00:00 
			
		
		
		
	Cleanup flake8 issues
This commit is contained in:
		
							parent
							
								
									5d3835735e
								
							
						
					
					
						commit
						33ed07811b
					
				| @ -2,7 +2,7 @@ import errno | ||||
| from .compat import PY3 | ||||
| 
 | ||||
| if PY3: | ||||
|     _permission_error = PermissionError | ||||
|     _permission_error = PermissionError  # noqa: F821 | ||||
| else: | ||||
|     _permission_error = OSError | ||||
| 
 | ||||
|  | ||||
| @ -110,7 +110,7 @@ def trash_move(src, dst, topdir=None): | ||||
| 
 | ||||
|     check_create(filespath) | ||||
|     check_create(infopath) | ||||
|      | ||||
| 
 | ||||
|     with open(op.join(infopath, destname + INFO_SUFFIX), "w") as f: | ||||
|         f.write(info_for(src, topdir)) | ||||
|     os.rename(src, op.join(filespath, destname)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user