From cc2da2ad678e939de63e96134c2102d3732bfc30 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 1 Oct 2004 07:38:09 +0000 Subject: r2767: Get rid of some unnecessary %s formatting. (This used to be commit b63a0ef0d41e6f0fdc6bf46435fb7b81925946da) --- source4/build/pidl/swig.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/build/pidl/swig.pm b/source4/build/pidl/swig.pm index 34a1edd268..b3f2107001 100644 --- a/source4/build/pidl/swig.pm +++ b/source4/build/pidl/swig.pm @@ -55,12 +55,12 @@ sub ArrayFromPython($$) } $result .= "\tif (!PyDict_GetItemString(obj, \"$e->{NAME}\")) {\n"; - $result .= "\t\tPyErr_Format(PyExc_ValueError, \"Expecting key '%s'\", \"$e->{NAME}\");\n"; + $result .= "\t\tPyErr_Format(PyExc_ValueError, \"Expecting key '$e->{NAME}'\");\n"; $result .= "\t\treturn NULL;\n"; $result .= "\t}\n\n"; $result .= "\tif (!PyList_Check(PyDict_GetItemString(obj, \"$e->{NAME}\"))) {\n"; - $result .= "\t\tPyErr_Format(PyExc_TypeError, \"Expecting list value for key '%s'\", \"$e->{NAME}\");\n"; + $result .= "\t\tPyErr_Format(PyExc_TypeError, \"Expecting list value for key '$e->{NAME}'\");\n"; $result .= "\t\treturn NULL;\n"; $result .= "\t}\n\n"; -- cgit