summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2023-01-07 08:41:18 -0800
committerEli Bendersky <eliben@gmail.com>2023-01-07 08:41:18 -0800
commit85a40529d4fda2e4eb59c9bd619aabe2f55851e3 (patch)
tree8c1150b73ee1f179539c1db32563caff0a693911
parentaa325fd47f8c4115e396f5e79d0442666a89b457 (diff)
downloadpycparser-85a40529d4fda2e4eb59c9bd619aabe2f55851e3.tar.gz
More removal of code specific for Python 2
-rw-r--r--CHANGES4
-rw-r--r--README.rst4
-rw-r--r--tests/test_util.py5
3 files changed, 6 insertions, 7 deletions
diff --git a/CHANGES b/CHANGES
index 4291cf7..17636b4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
++ Version 2.22 (????)
+
+ - Drops support for Python 2.x (#488)
+
+ Version 2.21 (2021.11.06)
- Much improved support for C11 (multiple PRs)
diff --git a/README.rst b/README.rst
index e8ae8c1..fa33847 100644
--- a/README.rst
+++ b/README.rst
@@ -83,9 +83,7 @@ Installing
Prerequisites
-------------
-* **pycparser** was tested on Python 2.7, 3.4-3.6, on both Linux and
- Windows. It should work on any later version (in both the 2.x and 3.x lines)
- as well.
+* **pycparser** was tested on Python 3.7+ on Linux, Mac OS and Windows.
* **pycparser** has no external dependencies. The only non-stdlib library it
uses is PLY, which is bundled in ``pycparser/ply``. The current PLY version is
diff --git a/tests/test_util.py b/tests/test_util.py
index a945c29..56835a0 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -34,10 +34,7 @@ def cpp_args(args=[]):
return args
def _bytes2str(b):
- if sys.version_info[0] == 3:
- return b.decode('latin-1')
- else:
- return b
+ return b.decode('latin-1')
def run_exe(exe_path, args=[], echo=False):
""" Runs the given executable as a subprocess, given the