]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gdb libpython.py: Remove compatibility code (#105739)
authorVictor Stinner <vstinner@python.org>
Wed, 14 Jun 2023 10:30:22 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 10:30:22 +0000 (12:30 +0200)
commit03160630319ca26dcbbad65225da4248e54c45ec
tree2f754836fcad1777c046170e7d5d7cde466bb4ba
parente5d45b7444733861153d6e8959c34323fd361322
gdb libpython.py: Remove compatibility code (#105739)

Remove compatibility code for Python 2 and early Python 3 versions.

* Remove os_fsencode() reimplementation: use os.fsencode() directly.
  os.fsencode() was added to Python 3.2.
* Remove references to Python 2 and "Python 3": just say "Python".
* Remove outdated u'' string format: use '' instead.
Tools/gdb/libpython.py