Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tabraham1:branches:home:jeff_mahoney:crash-python:devel
gdb
0005-py-symbol-use-Py_RETURN_NONE-instead-of-op...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-py-symbol-use-Py_RETURN_NONE-instead-of-open-coding-.patch of Package gdb
From dddfc1755a8243d993efda38a4b2fc3ce91443c8 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney <jeffm@suse.com> Date: Tue, 12 Jan 2016 20:45:21 -0500 Subject: [PATCH 05/17] py-symbol: use Py_RETURN_NONE instead of open coding it --- gdb/python/py-symbol.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 819a51f7e41..8c6d205eb42 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -74,8 +74,7 @@ sympy_get_type (PyObject *self, void *closure) if (symbol->type () == NULL) { - Py_INCREF (Py_None); - return Py_None; + Py_RETURN_NONE; } return type_to_type_object (symbol->type ()); @@ -466,8 +465,7 @@ gdbpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw) } else { - sym_obj = Py_None; - Py_INCREF (Py_None); + Py_RETURN_NONE; } return sym_obj; -- 2.37.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor