From eb2a7c405bd7e15ebe5ed53ce963f324f86db1c1 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Mon, 8 May 2023 21:10:41 +0100 Subject: [PATCH] =?UTF-8?q?Update=20Send2Trash=201.8.1b0=20(0ef9b32)=20?= =?UTF-8?q?=E2=86=92=201.8.2=20(0244f53).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 1 + lib/send2trash/win/legacy.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index de494ba8..c060e493 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * Update Msgpack 1.0.4 (b5acfd5) to 1.0.5 (0516c2c) * Update Pytvmaze library 2.0.8 (16ed096) to 2.0.8 (81888a5) * Update Requests library 2.28.1 (ec553c2) to 2.29.0 (87d63de) +* Update Send2Trash 1.8.1b0 (0ef9b32) to 1.8.2 (0244f53) * Update SimpleJSON 3.18.1 (c891b95) to 3.19.1 (aeb63ee) * Update Tornado Web Server 6.3.0 (7186b86) to 6.3.1 (419838b) * Update urllib3 1.26.14 (a06c05c) to 1.26.15 (25cca389) diff --git a/lib/send2trash/win/legacy.py b/lib/send2trash/win/legacy.py index 3aee7d9b..02fa313c 100644 --- a/lib/send2trash/win/legacy.py +++ b/lib/send2trash/win/legacy.py @@ -86,10 +86,7 @@ def convert_sh_file_opt_result(result): 0x10074: 0x57, # DE_ROOTDIR | ERRORONDEST -> ERROR_INVALID_PARAMETER } - if result in results.keys(): - return results[result] - else: - return result + return results.get(result, result) def prefix_and_path(path):