From 33ed07811bef1a7e1981bc2fdd53f1785ed0935e Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Mon, 1 Mar 2021 23:44:03 -0600 Subject: [PATCH] Cleanup flake8 issues --- send2trash/exceptions.py | 2 +- send2trash/plat_other.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))