fix encoding issue for python 3
svn: r21056
This commit is contained in:
parent
722f0f7589
commit
e613f02469
@ -127,7 +127,10 @@ def __index_surname(surn_list):
|
|||||||
NameOriginType.PATRONYMIC, NameOriginType.MATRONYMIC]) ])
|
NameOriginType.PATRONYMIC, NameOriginType.MATRONYMIC]) ])
|
||||||
else:
|
else:
|
||||||
surn = ""
|
surn = ""
|
||||||
return surn.encode('utf-8')
|
if sys.version_info[0] < 3:
|
||||||
|
return surn.encode('utf-8')
|
||||||
|
else:
|
||||||
|
return surn
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user