[Docstring-checkins] CVS: dps/dps/writers pprint.py,1.2,1.3
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-02-12 02:13:54
|
Update of /cvsroot/docstring/dps/dps/writers In directory usw-pr-cvs1:/tmp/cvs-serv30040/dps/dps/writers Modified Files: pprint.py Log Message: rearranged & improved Index: pprint.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/writers/pprint.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pprint.py 7 Feb 2002 01:58:44 -0000 1.2 --- pprint.py 12 Feb 2002 02:13:51 -0000 1.3 *************** *** 21,28 **** class Writer(writers.Writer): ! def transform(self): ! pass ! def record(self, document, destination): ! output = document.pformat() ! self.recordfile(output, destination) --- 21,30 ---- class Writer(writers.Writer): ! output = None ! """Final translated form of `document`.""" ! def translate(self): ! self.output = self.document.pformat() ! ! def record(self): ! self.recordfile(self.output, self.destination) |