diff --git a/send2trash/exceptions.py b/send2trash/exceptions.py index 9d5d91f..b61c645 100644 --- a/send2trash/exceptions.py +++ b/send2trash/exceptions.py @@ -2,7 +2,7 @@ import errno from .compat import PY3 if PY3: - _permission_error = PermissionError + _permission_error = PermissionError # noqa: F821 else: _permission_error = OSError diff --git a/send2trash/plat_other.py b/send2trash/plat_other.py index 3e4e8ea..37777ca 100644 --- a/send2trash/plat_other.py +++ b/send2trash/plat_other.py @@ -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))