fix encoding issue for python 3

svn: r21056
This commit is contained in:
Benny Malengier 2013-01-11 13:04:50 +00:00
parent 722f0f7589
commit e613f02469

View File

@ -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
#------------------------------------------------------------------------- #-------------------------------------------------------------------------