[Zope3-checkins] SVN: Zope3/branches/tlotze/src/zope/interface/interface.py got rid of some unnecessary string formatting

Thomas Lotze tl at gocept.com
Tue Aug 23 05:50:25 EDT 2005


Log message for revision 38034:
  got rid of some unnecessary string formatting

Changed:
  U   Zope3/branches/tlotze/src/zope/interface/interface.py

-=-
Modified: Zope3/branches/tlotze/src/zope/interface/interface.py
===================================================================
--- Zope3/branches/tlotze/src/zope/interface/interface.py	2005-08-23 09:44:01 UTC (rev 38033)
+++ Zope3/branches/tlotze/src/zope/interface/interface.py	2005-08-23 09:50:25 UTC (rev 38034)
@@ -438,7 +438,7 @@
             elif attr is _decorator_non_return:
                 del attrs[name]
             else:
-                raise InvalidInterface("Concrete attribute, %s" %name)
+                raise InvalidInterface("Concrete attribute, " + name)
 
         self.__attrs = attrs
 
@@ -831,11 +831,11 @@
         for v in self.positional:
             sig.append(v)
             if v in self.optional.keys():
-                sig[-1] += "=%s" % `self.optional[v]`
+                sig[-1] += "=" + `self.optional[v]`
         if self.varargs:
-            sig.append("*%s" % self.varargs)
+            sig.append("*" + self.varargs)
         if self.kwargs:
-            sig.append("**%s" % self.kwargs)
+            sig.append("**" + self.kwargs)
 
         return "(%s)" % ", ".join(sig)
 



More information about the Zope3-Checkins mailing list