This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove some Python 3 #ifs
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 06 Mar 2019 02:17:13 -0500
- Subject: [binutils-gdb] Remove some Python 3 #ifs
*** TEST RESULTS FOR COMMIT ea38e5df7707949c20a92004f0f66efb4a9ff2a5 ***
Author: Tom Tromey <tromey@adacore.com>
Branch: master
Commit: ea38e5df7707949c20a92004f0f66efb4a9ff2a5
Remove some Python 3 #ifs
A recent patch from Kevin Buettner taught me that the PyBytes API is
available on Python 2. This patch removes a couple of related #ifs in
the Python code.
Tested on x86-64 Fedora 29, using both Python 3.7 and Python 2.7.
gdb/ChangeLog
2019-03-05 Tom Tromey <tromey@adacore.com>
* python/py-prettyprint.c (print_string_repr): Remove #if.
* python/py-utils.c (unicode_to_encoded_string): Remove #if.