[Checkins] SVN: manuel/branches/jim-multiple-doctest/ some small tweaks:
Benji York
benji+zope.org at benjiyork.com
Tue Jan 25 21:34:16 EST 2011
Log message for revision 119937:
some small tweaks:
- whitespace
- typo
- use the more common "m" name for a manuel instead of "self"
Changed:
U manuel/branches/jim-multiple-doctest/CHANGES.txt
U manuel/branches/jim-multiple-doctest/src/manuel/README.txt
U manuel/branches/jim-multiple-doctest/src/manuel/doctest.py
U manuel/branches/jim-multiple-doctest/src/manuel/tests.py
-=-
Modified: manuel/branches/jim-multiple-doctest/CHANGES.txt
===================================================================
--- manuel/branches/jim-multiple-doctest/CHANGES.txt 2011-01-25 21:25:12 UTC (rev 119936)
+++ manuel/branches/jim-multiple-doctest/CHANGES.txt 2011-01-26 02:34:15 UTC (rev 119937)
@@ -8,6 +8,7 @@
manuels were used at once (e.g. to execute Python and shell code in
the same document).
+
1.4.0 (2011-01-11)
------------------
@@ -16,6 +17,7 @@
adding support for other languages or other (but similar) example
syntaxes.
+
1.3.0 (2010-09-02)
------------------
Modified: manuel/branches/jim-multiple-doctest/src/manuel/README.txt
===================================================================
--- manuel/branches/jim-multiple-doctest/src/manuel/README.txt 2011-01-25 21:25:12 UTC (rev 119936)
+++ manuel/branches/jim-multiple-doctest/src/manuel/README.txt 2011-01-26 02:34:15 UTC (rev 119937)
@@ -299,7 +299,7 @@
Multiple doctest parsers
~~~~~~~~~~~~~~~~~~~~~~~~
-You may use server doctest parsers in the same session, for example,
+You may use several doctest parsers in the same session, for example,
to support shell commands and Python code in the same document.
>>> m = (manuel.doctest.Manuel(parser=DocTestPyParser()) +
Modified: manuel/branches/jim-multiple-doctest/src/manuel/doctest.py
===================================================================
--- manuel/branches/jim-multiple-doctest/src/manuel/doctest.py 2011-01-25 21:25:12 UTC (rev 119936)
+++ manuel/branches/jim-multiple-doctest/src/manuel/doctest.py 2011-01-26 02:34:15 UTC (rev 119937)
@@ -9,7 +9,7 @@
pass
-def parse(self, document, parser):
+def parse(m, document, parser):
for region in list(document):
if region.parsed:
continue
@@ -20,7 +20,7 @@
if isinstance(chunk, basestring):
continue
- chunk._manual = self
+ chunk._manual = m
chunk_line_count = (chunk.source.count('\n')
+ chunk.want.count('\n'))
Modified: manuel/branches/jim-multiple-doctest/src/manuel/tests.py
===================================================================
--- manuel/branches/jim-multiple-doctest/src/manuel/tests.py 2011-01-25 21:25:12 UTC (rev 119936)
+++ manuel/branches/jim-multiple-doctest/src/manuel/tests.py 2011-01-26 02:34:15 UTC (rev 119937)
@@ -66,6 +66,5 @@
))
-
if __name__ == '__main__':
unittest.TextTestRunner().run(test_suite())
More information about the checkins
mailing list