From da44468d8d89a51d8001492e2d8b84d4a4541301 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 19 Nov 2013 12:33:06 +0100 Subject: [PATCH] Fix slughifi unicodization. --- fnpdjango/utils/text/slughifi.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fnpdjango/utils/text/slughifi.py b/fnpdjango/utils/text/slughifi.py index fe5c9e3..938049e 100644 --- a/fnpdjango/utils/text/slughifi.py +++ b/fnpdjango/utils/text/slughifi.py @@ -39,7 +39,7 @@ def slughifi(value, do_slugify=True, overwrite_char_map={}): """ # unicodification - if type(value) != UnicodeType: + if not isinstance(value, unicode): value = unicode(value, 'utf-8', 'ignore') # overwrite chararcter mapping diff --git a/setup.py b/setup.py index 2dadda5..759226f 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_trees(package_dir, paths): setup( name='fnpdjango', - version='0.1.7', + version='0.1.8', author='Radek Czajka', author_email='radoslaw.czajka@nowoczesnapolska.org.pl', url = '', -- 2.20.1