From 0b6b2fe5b0fc4b5ebf85083128755db4541b8091 Mon Sep 17 00:00:00 2001 From: Andrey Efremov Date: Thu, 1 Jan 2026 13:55:45 +0700 Subject: [PATCH] Replace elif with else (#104) --- send2trash/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send2trash/util.py b/send2trash/util.py index 91f4591..2e43a85 100644 --- a/send2trash/util.py +++ b/send2trash/util.py @@ -12,7 +12,7 @@ import collections.abc def preprocess_paths(paths): if isinstance(paths, collections.abc.Iterable) and not isinstance(paths, (str, bytes)): paths = list(paths) - elif not isinstance(paths, list): + else: paths = [paths] # Convert items such as pathlib paths to strings return [os.fspath(path) for path in paths]