提交 c634ad2a 编写于 作者: P pukkandan

[compat] Remove unnecessary code

上级 8f334380
此差异已折叠。
......@@ -6303,5 +6303,5 @@ def traverse_dict(dictn, keys, casesense=True):
is_user_input=True, traverse_string=True)
def variadic(x, allowed_types=str):
def variadic(x, allowed_types=(str, bytes)):
return x if isinstance(x, collections.Iterable) and not isinstance(x, allowed_types) else (x,)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册