[Zope3-checkins] SVN: Zope3/trunk/src/zope/ Changed some calls of x.__repr__() to repr(x).

Marius Gedminas marius at pov.lt
Fri Jul 16 11:38:26 EDT 2004


Log message for revision 26580:
  Changed some calls of x.__repr__() to repr(x).
  
  


Changed:
  U   Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
  U   Zope3/trunk/src/zope/app/apidoc/utilities.py
  U   Zope3/trunk/src/zope/configuration/stxdocs.py


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-07-16 12:33:24 UTC (rev 26579)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-07-16 15:38:26 UTC (rev 26580)
@@ -325,7 +325,7 @@
         return [{'name': field.getName(),
                  'iface': _getFieldInterface(field),
                  'required': _getRequired(field),
-                 'default': field.default.__repr__(),
+                 'default': repr(field.default),
                  'description': field.description
                  }
                 for field in fields]

Modified: Zope3/trunk/src/zope/app/apidoc/utilities.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/utilities.py	2004-07-16 12:33:24 UTC (rev 26579)
+++ Zope3/trunk/src/zope/app/apidoc/utilities.py	2004-07-16 15:38:26 UTC (rev 26580)
@@ -313,7 +313,7 @@
         if default[i] is placeholder:
             str_args.append(args[i])
         else:
-            str_args.append(args[i] + '=' + default[i].__repr__())
+            str_args.append(args[i] + '=' + repr(default[i]))
 
     if varargs:
         str_args.append('*'+varargs)

Modified: Zope3/trunk/src/zope/configuration/stxdocs.py
===================================================================
--- Zope3/trunk/src/zope/configuration/stxdocs.py	2004-07-16 12:33:24 UTC (rev 26579)
+++ Zope3/trunk/src/zope/configuration/stxdocs.py	2004-07-16 15:38:26 UTC (rev 26580)
@@ -78,7 +78,7 @@
         if field.required:
             opt = 'required'
         else:
-            opt = 'optional, default=%s' %field.default.__repr__()
+            opt = 'optional, default=%s' %repr(field.default)
         text += ' '*indent_offset
         text += '    %s -- %s (%s)\n\n' %(name, field.__class__.__name__, opt)
 



More information about the Zope3-Checkins mailing list