summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--glib/glibmodule.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4ddac31..9c5dedc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-01 Johan Dahlin <johan@gnome.org>
+
+ * glib/glibmodule.c (pyglib_set_application_name):
+ Use %r instead of %s, this is not python!
+
2008-07-31 Johan Dahlin <johan@gnome.org>
* 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;
}