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