Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #81 from carloshgaray/master
Browse files Browse the repository at this point in the history
patched "name 'unicode' is not defined" python3
  • Loading branch information
Adam Cohen committed Apr 29, 2015
2 parents 89e27f3 + c477365 commit 5f0eb1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fuzzywuzzy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def validate_string(s):
bad_chars = str("").join([chr(i) for i in range(128, 256)]) # ascii dammit!
if PY3:
translation_table = dict((ord(c), None) for c in bad_chars)
unicode = str


def asciionly(s):
Expand Down

0 comments on commit 5f0eb1b

Please sign in to comment.