towards supporting python 2 and 3
- use absolute_imports - make use of six.moves - use exec instead of execfile - use list(dict) instead if dict.keys()
This commit is contained in:
parent
728ed14499
commit
1468ddbecb
89 changed files with 400 additions and 265 deletions
|
|
@ -53,8 +53,8 @@ def plural_key(term):
|
|||
def sort_title(title):
|
||||
|
||||
title = title.replace(u'Æ', 'Ae')
|
||||
if isinstance(title, str):
|
||||
title = unicode(title)
|
||||
if isinstance(title, bytes):
|
||||
title = title.decode('utf-8')
|
||||
title = sort_string(title)
|
||||
|
||||
#title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue