Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad715a0 commit ca2b901Copy full SHA for ca2b901
git/cmd.py
@@ -421,12 +421,16 @@ def transform_kwargs(self, **kwargs):
421
@classmethod
422
def __unpack_args(cls, arg_list):
423
if not isinstance(arg_list, (list,tuple)):
424
+ if isinstance(arg_list, unicode):
425
+ return [arg_list.encode('utf-8')]
426
return [ str(arg_list) ]
427
428
outlist = list()
429
for arg in arg_list:
430
if isinstance(arg_list, (list, tuple)):
431
outlist.extend(cls.__unpack_args( arg ))
432
+ elif isinstance(arg_list, unicode):
433
+ outlist.append(arg_list.encode('utf-8'))
434
# END recursion
435
else:
436
outlist.append(str(arg))
0 commit comments