aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 0bf53cac2a9..29c8fbdb473 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1309,17 +1309,17 @@ gdbpy_colorize (const std::string &filename, const std::string &contents,
gdbpy_enter enter_py;
- gdbpy_ref<> module (PyImport_ImportModule ("gdb.styling"));
- if (module == nullptr)
+ gdbpy_ref<> mod (PyImport_ImportModule ("gdb.styling"));
+ if (mod == nullptr)
{
gdbpy_print_stack ();
return {};
}
- if (!PyObject_HasAttrString (module.get (), "colorize"))
+ if (!PyObject_HasAttrString (mod.get (), "colorize"))
return {};
- gdbpy_ref<> hook (PyObject_GetAttrString (module.get (), "colorize"));
+ gdbpy_ref<> hook (PyObject_GetAttrString (mod.get (), "colorize"));
if (hook == nullptr)
{
gdbpy_print_stack ();
@@ -1394,17 +1394,17 @@ gdbpy_colorize_disasm (const std::string &content, gdbarch *gdbarch)
gdbpy_enter enter_py;
- gdbpy_ref<> module (PyImport_ImportModule ("gdb.styling"));
- if (module == nullptr)
+ gdbpy_ref<> mod (PyImport_ImportModule ("gdb.styling"));
+ if (mod == nullptr)
{
gdbpy_print_stack ();
return {};
}
- if (!PyObject_HasAttrString (module.get (), "colorize_disasm"))
+ if (!PyObject_HasAttrString (mod.get (), "colorize_disasm"))
return {};
- gdbpy_ref<> hook (PyObject_GetAttrString (module.get (),
+ gdbpy_ref<> hook (PyObject_GetAttrString (mod.get (),
"colorize_disasm"));
if (hook == nullptr)
{