Use PyBool_FromLong
authorTom Tromey <tromey@adacore.com>
Tue, 7 Jun 2022 15:15:24 +0000 (09:15 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 23 Jun 2022 15:27:30 +0000 (09:27 -0600)
commitc86acd3f180419c3d9825170492363fe2322fa8d
tree8cbf3d2944695d4300e83c591f28557ef3e51524
parent570e911f4e533fad33ad5e4e1102929cf7e80bd7
Use PyBool_FromLong

I noticed a few spots that were explicitly creating new references to
Py_True or Py_False.  It's simpler here to use PyBool_FromLong, so
this patch changes all the places I found.
gdb/python/py-cmd.c
gdb/python/py-symbol.c
gdb/python/py-type.c