Minor Python simplifications
authorTom Tromey <tromey@adacore.com>
Mon, 2 Nov 2020 17:17:07 +0000 (10:17 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 2 Nov 2020 17:17:07 +0000 (10:17 -0700)
commit5b3d3560e9e867f652ff622863cbac267455f726
treef43c211abd48c163511bc5457d6d729c6bca2a9b
parentdda83cd783075941aabe9b0292b004b11f00c831
Minor Python simplifications

I noticed that a few "#if"s could be removed from the Python code.
This patch is the result.

gdb/ChangeLog
2020-11-02  Tom Tromey  <tromey@adacore.com>

* python/python.c: Consolidate two HAVE_PYTHON blocks.
(python_GdbModuleDef): Move earlier.  Now static.
(do_start_initialization): Consolidate some IS_PY3K blocks.
gdb/ChangeLog
gdb/python/python.c