[Checkins]
SVN: z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt
better formatting of doctest
Ethan Jucovy
ejucovy at openplans.org
Sat Apr 19 16:20:10 EDT 2008
Log message for revision 85493:
better formatting of doctest
Changed:
U z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt
-=-
Modified: z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt
===================================================================
--- z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt 2008-04-19 20:18:29 UTC (rev 85492)
+++ z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt 2008-04-19 20:20:09 UTC (rev 85493)
@@ -327,6 +327,7 @@
It should find the correct distribution for a package whose namespace
is extended by other packages in the environment::
+
>>> from z3c.autoinclude.utils import distributionForPackage
>>> distributionForPackage(base2)
base2 0.0 (...base2-0.0...egg)
@@ -334,6 +335,7 @@
It should also find the correct distribution for namespace packages,
even if the namespace being extended is a module defined in another
package in the environment::
+
>>> import base2.plug
>>> distributionForPackage(base2.plug)
base2-plug 0.0 (...base2_plug-0.0...egg)
@@ -341,6 +343,7 @@
While we're at it, it should also find the correct distribution for
packages whose distribution name has no bearing on the name of the
package contained within it::
+
>>> import basepackage
>>> distributionForPackage(basepackage)
BasePackage 0.0 (...BasePackage-0.0...egg)
More information about the Checkins
mailing list