| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -410,12 +410,16 @@ def transform_kwargs(self, split_single_char_options=False, **kwargs): | |||
| 410 | 410 | @classmethod | |
| 411 | 411 | def __unpack_args(cls, arg_list): | |
| 412 | 412 | if not isinstance(arg_list, (list,tuple)): | |
| 413 | + if isinstance(arg_list, unicode): | ||
| 414 | + return [arg_list.encode('utf-8')] | ||
| 413 | 415 | return [ str(arg_list) ] | |
| 414 | 416 | ||
| 415 | 417 | outlist = list() | |
| 416 | 418 | for arg in arg_list: | |
| 417 | 419 | if isinstance(arg_list, (list, tuple)): | |
| 418 | 420 | outlist.extend(cls.__unpack_args( arg )) | |
| 421 | + elif isinstance(arg_list, unicode): | ||
| 422 | + outlist.append(arg_list.encode('utf-8')) | ||
| 419 | 423 | # END recursion | |
| 420 | 424 | else: | |
| 421 | 425 | outlist.append(str(arg)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments