鏡像自
https://github.com/arsenetar/send2trash.git
已同步 2026-03-24 07:21:37 +00:00
Replace elif with else (#104)
此提交包含在:
@@ -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]
|
||||||
|
|||||||
新增問題並參考
封鎖使用者