Add unicoding of input string (wordentries)
This commit is contained in:
@@ -16,3 +16,5 @@ db_conf.password = "postgres"
|
||||
|
||||
unrar_config.path = "unrar"
|
||||
folders.temp = "/tmp/py-fias"
|
||||
|
||||
basic.logging = True
|
||||
@@ -44,7 +44,7 @@ class WordEntry:
|
||||
|
||||
def __init__(self, db, word):
|
||||
self.db = db
|
||||
self.word = str(word)
|
||||
self.word = unicode(word)
|
||||
self.word_len = len(unicode(self.word))
|
||||
self.variations = []
|
||||
self.scname = None
|
||||
|
||||
Reference in New Issue
Block a user