Skip to content

Commit b514519

Browse files
author
Rob Speer
committed
Update references to Python versions and Unicode versions
1 parent 09878e6 commit b514519

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ Variants of UTF-8
301301

302302
*ftfy.chardata* and *ftfy.build_data*: trivia about characters
303303
--------------------------------------------------------------
304-
These files load information about the character properties in Unicode 9.0.
305-
Yes, even if your version of Python doesn't support Unicode 9.0. This ensures
304+
These files load information about the character properties in Unicode 11.0.
305+
Yes, even if your version of Python doesn't support Unicode 11.0. This ensures
306306
that ftfy's behavior is consistent across versions.
307307

308308
.. automodule:: ftfy.chardata

ftfy/build_data.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
classes we care about change, or if a new version of Python supports a new
66
Unicode standard and we want it to affect our string decoding.
77
8-
The file that we generate is based on Unicode 9.0, as supported by Python 3.6.
8+
The file that we generate is based on Unicode 11.0, as supported by Python 3.7.
99
You can certainly use it in earlier versions. This simply makes sure that we
1010
get consistent results from running ftfy on different versions of Python.
1111
@@ -39,16 +39,16 @@ def make_char_data_file(do_it_anyway=False):
3939
Build the compressed data file 'char_classes.dat' and write it to the
4040
current directory.
4141
42-
If you run this, run it in Python 3.6 or later. It will run in earlier
43-
versions, but you won't get the Unicode 9 standard, leading to inconsistent
44-
behavior.
42+
If you run this, run it in Python 3.7.0 or later. It will run in earlier
43+
versions, but you won't get the Unicode 11 standard, leading to inconsistent
44+
behavior. Pre-releases of Python 3.7 won't work (Unicode 11 wasn't out yet).
4545
4646
To protect against this, running this in the wrong version of Python will
4747
raise an error unless you pass `do_it_anyway=True`.
4848
"""
49-
if sys.hexversion < 0x03060000 and not do_it_anyway:
49+
if sys.hexversion < 0x030700f0 and not do_it_anyway:
5050
raise RuntimeError(
51-
"This function should be run in Python 3.6 or later."
51+
"This function should be run in Python 3.7.0 or later."
5252
)
5353

5454
cclasses = [None] * 0x110000

0 commit comments

Comments
 (0)