[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/generations/browser/managerdetails.py remove dependence on a bug in Python 2.4's pprint module

Fred L. Drake, Jr. fdrake at gmail.com
Sun Sep 10 02:29:39 EDT 2006


Log message for revision 70083:
  remove dependence on a bug in Python 2.4's pprint module

Changed:
  U   Zope3/trunk/src/zope/app/generations/browser/managerdetails.py

-=-
Modified: Zope3/trunk/src/zope/app/generations/browser/managerdetails.py
===================================================================
--- Zope3/trunk/src/zope/app/generations/browser/managerdetails.py	2006-09-08 22:09:27 UTC (rev 70082)
+++ Zope3/trunk/src/zope/app/generations/browser/managerdetails.py	2006-09-10 06:29:37 UTC (rev 70083)
@@ -51,12 +51,11 @@
     Now check that we get all the info from the evolvers:
 
       >>> info = details.getEvolvers()
-      >>> import pprint
-      >>> pp = pprint.PrettyPrinter(width=76)
-      >>> pp.pprint(info)
-      [{'info': u'<p>Evolver 1</p>\n', 'to': 1, 'from': 0},
-       {'info': u'<p>Evolver 2</p>\n', 'to': 2, 'from': 1},
-       {'info': '', 'to': 3, 'from': 2}]
+      >>> for item in info:
+      ...     print sorted(item.items())
+      [('from', 0), ('info', u'<p>Evolver 1</p>\n'), ('to', 1)]
+      [('from', 1), ('info', u'<p>Evolver 2</p>\n'), ('to', 2)]
+      [('from', 2), ('info', ''), ('to', 3)]
 
     We'd better clean up:
 



More information about the Zope3-Checkins mailing list