1
0
鏡像自 https://github.com/arsenetar/send2trash.git 已同步 2026-03-24 07:21:37 +00:00

Replace elif with else (#104)

此提交包含在:
Andrey Efremov
2026-01-01 13:55:45 +07:00
提交者 GitHub
父節點 9615b7e4f8
當前提交 0b6b2fe5b0

查看文件

@@ -12,7 +12,7 @@ import collections.abc
def preprocess_paths(paths): def preprocess_paths(paths):
if isinstance(paths, collections.abc.Iterable) and not isinstance(paths, (str, bytes)): if isinstance(paths, collections.abc.Iterable) and not isinstance(paths, (str, bytes)):
paths = list(paths) paths = list(paths)
elif not isinstance(paths, list): else:
paths = [paths] paths = [paths]
# Convert items such as pathlib paths to strings # Convert items such as pathlib paths to strings
return [os.fspath(path) for path in paths] return [os.fspath(path) for path in paths]