diff options
author | Leonard Richardson <leonardr@segfault.org> | 2021-09-07 20:09:32 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2021-09-07 20:09:32 -0400 |
commit | 9d68e443978afda17f59f0ff9e73af2b9b0921c2 (patch) | |
tree | c23b00ad1379e3c10212c048ef84fc40c9321da3 /README.md | |
parent | 70f546b1e689a70e2f103795efce6d261a3dadf7 (diff) |
Goodbye, Python 2. [bug=1942919]
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -53,17 +53,11 @@ To go beyond the basics, [comprehensive documentation is available](http://www.c # Note on Python 2 sunsetting -Since 2012, Beautiful Soup has been developed as a Python 2 library -which is automatically converted to Python 3 code as necessary. This -makes it impossible to take advantage of some features of Python -3. - -For this reason, I plan to discontinue Beautiful Soup's Python 2 -support at some point after December 31, 2020: one year after the -sunset date for Python 2 itself. Beyond that point, new Beautiful Soup -development will exclusively target Python 3. Of course, older -releases of Beautiful Soup, which support both versions, will continue -to be available. +Beautiful Soup's support for Python 2 was discontinued on December 31, +2020: one year after the sunset date for Python 2 itself. From this +point onward, new Beautiful Soup development will exclusively target +Python 3. The final release of Beautiful Soup 4 to support Python 2 +was 4.9.3. # Supporting the project @@ -93,10 +87,5 @@ $ nosetests ``` ``` -$ python -m unittest discover -s bs4 +$ python3 -m unittest discover -s bs4 ``` - -If you checked out the source tree, you should see a script in the -home directory called test-all-versions. This script will run the unit -tests under Python 2, then create a temporary Python 3 conversion of -the source and run the unit tests again under Python 3. |