From baee1fed7d769e6e2e31c046e19a2d3818ae27f7 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 1 Aug 2008 16:30:41 +0000 Subject: Use %r instead of %s, this is not python! 2008-08-01 Johan Dahlin * glib/glibmodule.c (pyglib_set_application_name): Use %r instead of %s, this is not python! svn path=/trunk/; revision=903 --- ChangeLog | 5 +++++ glib/glibmodule.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4ddac31..9c5dedc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-01 Johan Dahlin + + * glib/glibmodule.c (pyglib_set_application_name): + Use %r instead of %s, this is not python! + 2008-07-31 Johan Dahlin * glib/glibmodule.c (pyglib_set_prgname) diff --git a/glib/glibmodule.c b/glib/glibmodule.c index 4280ac8..79ae6c8 100644 --- a/glib/glibmodule.c +++ b/glib/glibmodule.c @@ -491,7 +491,7 @@ pyglib_set_application_name(PyObject *self, PyObject *arg) { if (!PyString_Check(arg)) { PyErr_Format(PyExc_TypeError, - "first argument must be a string, not %r", + "first argument must be a string, not '%s'", PyString_AS_STRING(PyObject_Repr(arg))); return NULL; } -- cgit