Skip to content

Commit

Permalink
Close joke2k#628. Switch to text-unidecode
Browse files Browse the repository at this point in the history
  • Loading branch information
fcurella committed Oct 16, 2017
1 parent 61aa3e1 commit e32a0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions faker/providers/internet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding=utf-8
from __future__ import unicode_literals

import unidecode
from text_unidecode import unidecode

from .. import BaseProvider

Expand Down Expand Up @@ -71,7 +71,7 @@ def _to_ascii(self, string):
for search, replace in self.replacements:
string = string.replace(search, replace)

string = unidecode.unidecode(string)
string = unidecode(string)
return string

@lowercase
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
install_requires=[
"python-dateutil>=2.4",
"six",
"unidecode",
"text-unidecode",
],
test_requires=[
"email_validator>=1.0.0,<1.1.0",
Expand Down

0 comments on commit e32a0cd

Please sign in to comment.