1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2026-01-22 06:37:18 +00:00

Replace elif with else (#104)

This commit is contained in:
Andrey Efremov
2026-01-01 13:55:45 +07:00
committed by GitHub
parent 9615b7e4f8
commit 0b6b2fe5b0

View File

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