[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/servicemodule - browser.py:1.4

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 21:01:47 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/apidoc/servicemodule
In directory cvs.zope.org:/tmp/cvs-serv12615/src/zope/app/apidoc/servicemodule

Modified Files:
	browser.py 
Log Message:


Make use of the new zope.app.apidoc.tests.pprint function.




=== Zope3/src/zope/app/apidoc/servicemodule/browser.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/apidoc/servicemodule/browser.py:1.3	Sun Mar 28 18:41:00 2004
+++ Zope3/src/zope/app/apidoc/servicemodule/browser.py	Mon Mar 29 21:01:14 2004
@@ -64,8 +64,7 @@
 
     Example::
     
-      >>> import pprint
-      >>> pprint = pprint.PrettyPrinter(width=69).pprint
+      >>> from zope.app.apidoc.tests import pprint
       >>> from zope.component.interfaces import IUtilityService
       >>> from zope.component.utility import GlobalUtilityService
       >>> from zope.publisher.browser import TestRequest
@@ -87,9 +86,6 @@
       'zope.component.interfaces.IUtilityService'
 
       >>> impl = details.implementations()
-      >>> impl = [i.items() for i in impl]
-      >>> impl = [i for i in impl if i.sort() is None]
-      >>> impl.sort()
       >>> pprint(impl)
       [[('path', 'zope.component.utility.GlobalUtilityService'),
         ('url', 'zope/component/utility/GlobalUtilityService')]]




More information about the Zope3-Checkins mailing list