summaryrefslogtreecommitdiff
path: root/chimere/utils.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-02-04 22:59:44 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-02-04 22:59:44 +0100
commit32dc52d8194afd9454990ab3ec21ab2f152121d2 (patch)
tree48c7a3dc7585a3e002a5fec75505c1872c4c58fb /chimere/utils.py
parentc1849fefc55b9cfa6a2df55ad9aec92560d1c05d (diff)
downloadChimère-2137aaaa6df061f39a520d57a0d40bcfa6c6cfa6.tar.bz2
Chimère-2137aaaa6df061f39a520d57a0d40bcfa6c6cfa6.zip
Fixes for debian packagingv2.0.0
Diffstat (limited to 'chimere/utils.py')
-rw-r--r--chimere/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/utils.py b/chimere/utils.py
index d1ea851..a82d88b 100644
--- a/chimere/utils.py
+++ b/chimere/utils.py
@@ -46,6 +46,8 @@ from chimere import get_version
from external_utils import OsmApi
def unicode_normalize(string):
+ if type(string) == str:
+ string = unicode(string.decode('utf-8'))
return ''.join(
(c for c in unicodedata.normalize('NFD', string)
if unicodedata.category(c) != 'Mn'))