From 256458bc0ed6b39c34afefb60d2b1009603fd62a Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 29 Nov 2013 12:00:47 -0800 Subject: Remove trailing whitespace. Whitespace cleanup. * python/py-breakpoint.c: Remove trailing whitespace. * python/py-cmd.c: Ditto. * python/py-evts.c: Ditto. * python/py-finishbreakpoint.c: Ditto. * python/py-frame.c: Ditto. * python/py-function.c: Ditto. * python/py-inferior.c: Ditto. * python/py-infthread.c: Ditto. * python/py-param.c: Ditto. * python/py-prettyprint.c: Ditto. * python/py-symbol.c: Ditto. * python/py-type.c: Ditto. * python/py-utils.c: Ditto. * python/py-value.c: Ditto. * python/python-internal.h: Ditto. * python/python.c: Ditto. --- gdb/python/py-value.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gdb/python/py-value.c') diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 4054808..40254b9 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -437,7 +437,7 @@ valpy_do_cast (PyObject *self, PyObject *args, enum exp_opcode op) type = type_object_to_type (type_obj); if (! type) { - PyErr_SetString (PyExc_RuntimeError, + PyErr_SetString (PyExc_RuntimeError, _("Argument must be a type.")); return NULL; } @@ -510,7 +510,7 @@ valpy_getitem (PyObject *self, PyObject *key) PyObject *result = NULL; if (gdbpy_is_string (key)) - { + { field = python_string_to_host_string (key); if (field == NULL) return NULL; @@ -723,7 +723,7 @@ valpy_fetch_lazy (PyObject *self, PyObject *args) /* Calculate and return the address of the PyObject as the value of the builtin __hash__ call. */ -static long +static long valpy_hash (PyObject *self) { return (long) (intptr_t) self; @@ -1248,7 +1248,7 @@ convert_value_from_python (PyObject *obj) TRY_CATCH (except, RETURN_MASK_ALL) { - if (PyBool_Check (obj)) + if (PyBool_Check (obj)) { cmp = PyObject_IsTrue (obj); if (cmp >= 0) @@ -1431,7 +1431,7 @@ Return a lazy string representation of the value." }, { "string", (PyCFunction) valpy_string, METH_VARARGS | METH_KEYWORDS, "string ([encoding] [, errors] [, length]) -> string\n\ Return Unicode string representation of the value." }, - { "fetch_lazy", valpy_fetch_lazy, METH_NOARGS, + { "fetch_lazy", valpy_fetch_lazy, METH_NOARGS, "Fetches the value from the inferior, if it was lazy." }, {NULL} /* Sentinel */ }; -- cgit v1.1