Cleanup flake8 issues

This commit is contained in:
Andrew Senetar 2021-03-01 23:44:03 -06:00
parent 5d3835735e
commit 33ed07811b
Signed by: arsenetar
GPG Key ID: C63300DCE48AB2F1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))