[py-svn] r20635 - py/dist/py/misc

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Dec 4 12:56:47 CET 2005


Author: cfbolz
Date: Sun Dec  4 12:56:46 2005
New Revision: 20635

Modified:
   py/dist/py/misc/rest.py
Log:
make this import later to not require docutils installed for py.test


Modified: py/dist/py/misc/rest.py
==============================================================================
--- py/dist/py/misc/rest.py	(original)
+++ py/dist/py/misc/rest.py	Sun Dec  4 12:56:46 2005
@@ -1,5 +1,3 @@
-from py.__.rest import restgraphviz
-
 import sys, os, traceback
 import re
 
@@ -11,6 +9,7 @@
         pass
 
 def convert_rest_html(source, source_path, stylesheet=None, encoding='latin1'):
+    from py.__.rest import restgraphviz
     """ return html latin1-encoded document for the given input. 
         source  a ReST-string
         sourcepath where to look for includes (basically)



More information about the pytest-commit mailing list