summaryrefslogtreecommitdiff
path: root/slugify/slugify.py
diff options
context:
space:
mode:
authorVal Neekman <un33kvu@gmail.com>2019-03-03 12:40:56 -0500
committerGitHub <noreply@github.com>2019-03-03 12:40:56 -0500
commitb8be7d69119dcceb9a3e0ce64a509415737190ac (patch)
tree33d4a7f7bc921c33ccd521951881e2efb89dea26 /slugify/slugify.py
parent1340320455f7201117ac3970c0facf5d1e0f8767 (diff)
downloadpython-slugify-3.0.0.tar.gz
Promote text-unidecode to primary decoding api (#73)3.0.0
* enable raw re pattern * conditional text_unidecode install * update readme, changelog, manifest * update ci * readme * drop test for py 2.6 and 3.3 * clean up readme * readme * add support user-specific replacements (#66) thx * clean up, up version * add text-unidecode option as extra * Upgrade Unidecode, add text-unidecode as extra option (#71) * Add replacements option (#67) * add text-unidecode option as extra * remove req.txt files * Optional Extra Requirements (#72) * Add replacements option (#67) * Upgrade Unidecode, add text-unidecode as extra option (#71) * Add replacements option (#67) * add text-unidecode option as extra * remove req.txt files * use text-unidecode as primary decoding package * add dev reqs
Diffstat (limited to 'slugify/slugify.py')
-rw-r--r--slugify/slugify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slugify/slugify.py b/slugify/slugify.py
index 59e9672..fcd1d22 100644
--- a/slugify/slugify.py
+++ b/slugify/slugify.py
@@ -14,9 +14,9 @@ except ImportError:
unichr = chr
try:
- import unidecode
-except ImportError:
import text_unidecode as unidecode
+except ImportError:
+ import unidecode
__all__ = ['slugify', 'smart_truncate']