summaryrefslogtreecommitdiff
path: root/tests/test_unidecode.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 2 and 3.4.Tomaz Solc2021-02-051-78/+50
|
* Avoid exception chaining on Python 3.Tomaz Solc2021-01-081-0/+9
| | | | | | This avoids exceptions raised by errors='strict' from displaying as "During handling of the above exception ..." in the backtrace which can be confusing.
* Rename argument replace_char -> replace_strTomaz Solc2020-12-201-2/+2
|
* Add errors parameter to unidecode()Tomaz Solc2020-12-201-1/+36
| | | | This implements the idea in https://github.com/avian2/unidecode/pull/53
* Replace unnecessary _u() compat function with u prefix to stringJon Dufresne2018-12-311-42/+33
| | | | | Both Python 2 & Python 3 support representing Unicode strings with a u prefix. Can drop the _u() compat shim and let the interpreter handle it.
* Check if all spaces are transliterated to spaces.Tomaz Solc2018-12-301-0/+9
| | | | | If x.isspace() is True, then unidecode(x).isspace() should be True as well (unless it is an empty string)
* Drop support for EOL Python 2.6 & 3.3Jon Dufresne2018-06-301-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2.6 and 3.3 are end of life. They are no longer receiving bug fixes, including for security issues. Python 2.6 went EOL on 2013-10-29 and 3.3 on 2017-09-29. For additional details on supported Python versions, see: https://devguide.python.org/#status-of-python-branches Removing support for EOL Pythons will reduce testing and maintenance resources. Using pypinfo, here are the download statistics for Unidecode over the last 30 days, showing minimal 3.3 & 2.6 installs. $ pypinfo --percent unidecode pyversion | python_version | percent | download_count | | -------------- | ------- | -------------- | | 2.7 | 66.07% | 244,263 | | 3.6 | 19.69% | 72,777 | | 3.5 | 8.27% | 30,585 | | 3.4 | 5.59% | 20,663 | | 3.7 | 0.29% | 1,062 | | 2.6 | 0.06% | 210 | | 3.8 | 0.02% | 72 | | 3.3 | 0.01% | 44 | | 3.2 | 0.00% | 6 | | None | 0.00% | 2 |
* Fix transliteration of enclosed alphanumericsKrzysztof Jurewicz2016-05-291-0/+7
|
* Fix typosJakub Wilk2015-12-101-1/+1
|
* Check type of returned string in unit test.Tomaz Solc2015-11-171-2/+8
|
* Test all variants of the unidecode function.Tomaz Solc2015-11-171-24/+22
|
* Rename unidecode_fast to unidecode_expect_asciiTomaz Solc2015-11-171-3/+3
| | | | | Also, add unidecode_expect_nonascii. "unidecode" is now an alias for "unidecode_expect_ascii"
* Add unidecode_fast function to speedup mostly-ASCII transliterations.dukebody2015-11-141-1/+12
|
* skip test_unicode_text_converter on narrow buildsTomaz Solc2015-05-141-0/+1
|
* Fix surrogate test for Python 3.4Tomaz Solc2015-05-141-1/+4
|
* One test file for both Python 2.x and 3.xTomaz Solc2015-05-131-0/+502