fix encoding issue for python 3

svn: r21055
This commit is contained in:
Benny Malengier 2013-01-11 13:04:49 +00:00
parent 7fd98348ee
commit 9155b2feb6

View File

@ -127,7 +127,10 @@ def __index_surname(surn_list):
NameOriginType.PATRONYMIC, NameOriginType.MATRONYMIC]) ])
else:
surn = ""
return surn.encode('utf-8')
if sys.version_info[0] < 3:
return surn.encode('utf-8')
else:
return surn
#-------------------------------------------------------------------------