port to python3
This commit is contained in:
parent
14f426afd4
commit
8e27b9f76e
51 changed files with 272 additions and 248 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
from __future__ import division
|
||||
|
||||
|
||||
import unicodedata
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ def get_sort_name(name, sortname=None):
|
|||
person.save()
|
||||
sortname = unicodedata.normalize('NFKD', person.sortname)
|
||||
else:
|
||||
sortname = u''
|
||||
sortname = ''
|
||||
return sortname
|
||||
|
||||
class Person(db.Model):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue