Skip to content

Commit

Permalink
More removal of code specific for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Jan 7, 2023
1 parent aa325fd commit 85a4052
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 1 addition & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85a4052

Please sign in to comment.