summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst6
-rw-r--r--tests/test_readme.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index 2537064..99ec5f6 100644
--- a/README.rst
+++ b/README.rst
@@ -57,11 +57,11 @@ string (Python 3.x) and returns a string (that can be encoded to ASCII bytes in
Python 3.x)::
>>> from unidecode import unidecode
- >>> unidecode(u'ko\u017eu\u0161\u010dek')
+ >>> unidecode('ko\u017eu\u0161\u010dek')
'kozuscek'
- >>> unidecode(u'30 \U0001d5c4\U0001d5c6/\U0001d5c1')
+ >>> unidecode('30 \U0001d5c4\U0001d5c6/\U0001d5c1')
'30 km/h'
- >>> unidecode(u"\u5317\u4EB0")
+ >>> unidecode('\u5317\u4EB0')
'Bei Jing '
You can also specify an *errors* argument to ``unidecode()`` that determines
diff --git a/tests/test_readme.py b/tests/test_readme.py
index dbf757f..a476b3c 100644
--- a/tests/test_readme.py
+++ b/tests/test_readme.py
@@ -2,7 +2,7 @@ import doctest
import sys
def additional_tests():
- if sys.version_info[0] < 3 and sys.maxunicode >= 0x10000:
+ if sys.version_info[0] >= 3 and sys.maxunicode >= 0x10000:
return doctest.DocFileSuite("../README.rst")
else:
return doctest.DocFileSuite()