svn commit: samba r2767 - in branches/SAMBA_4_0/source/build/pidl: .

tpot at samba.org tpot at samba.org
Fri Oct 1 07:38:09 GMT 2004


Author: tpot
Date: 2004-10-01 07:38:09 +0000 (Fri, 01 Oct 2004)
New Revision: 2767

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/build/pidl&rev=2767&nolog=1

Log:
Get rid of some unnecessary %s formatting.

Modified:
   branches/SAMBA_4_0/source/build/pidl/swig.pm


Changeset:
Modified: branches/SAMBA_4_0/source/build/pidl/swig.pm
===================================================================
--- branches/SAMBA_4_0/source/build/pidl/swig.pm	2004-10-01 07:37:37 UTC (rev 2766)
+++ branches/SAMBA_4_0/source/build/pidl/swig.pm	2004-10-01 07:38:09 UTC (rev 2767)
@@ -55,12 +55,12 @@
     }
 
     $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";
 



More information about the samba-cvs mailing list