Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca2b901

Browse files
committed
Fixing unicode types
1 parentad715a0 commitca2b901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎git/cmd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,16 @@ def transform_kwargs(self, **kwargs):
421421
@classmethod
422422
def__unpack_args(cls,arg_list):
423423
ifnotisinstance(arg_list, (list,tuple)):
424+
ifisinstance(arg_list,unicode):
425+
return [arg_list.encode('utf-8')]
424426
return [str(arg_list) ]
425427

426428
outlist=list()
427429
forarginarg_list:
428430
ifisinstance(arg_list, (list,tuple)):
429431
outlist.extend(cls.__unpack_args(arg ))
432+
elifisinstance(arg_list,unicode):
433+
outlist.append(arg_list.encode('utf-8'))
430434
# END recursion
431435
else:
432436
outlist.append(str(arg))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp