[Zope3-checkins] CVS: Zope3/utilities - makezcmldocs.py:1.1.2.2
R. David Murray
bitz@bitdance.com
Mon, 14 Oct 2002 19:36:36 -0400
Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv12366
Modified Files:
Tag: rdmurray-metameta-branch
makezcmldocs.py
Log Message:
Fix bugs in dummy TextWrapper class for python2.2.
=== Zope3/utilities/makezcmldocs.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/utilities/makezcmldocs.py:1.1.2.1 Mon Oct 14 19:09:53 2002
+++ Zope3/utilities/makezcmldocs.py Mon Oct 14 19:36:36 2002
@@ -22,9 +22,10 @@
try: from textwrap import TextWrapper
except:
class TextWrapper:
- def __init__(initial_indent='',**kw): pass
- def __fill__(txt):
- return initial_indent+txt
+ def __init__(self,initial_indent='',**kw):
+ self.initial_indent = initial_indent
+ def fill(self,txt):
+ return self.initial_indent+txt
#Get Zope3 stuff in the pythonpath. Note that we use 'here' later as well.
basepath = filter(None, sys.path)
here = os.path.join(os.getcwd(), os.path.split(sys.argv[0])[0])