Commits

Anonymous committed 17deeba

Don't import ``render`` and ``sanitize`` to converters module.

  • Participants
  • Parent commits 36040a8

Comments (0)

Files changed (5)

   - Demonstrates ``webhelpers.html.grid``. Run as 
     "python -m webhelpers.html.grid_demo OUTPUT_DIRECTORY".
 
+* webhelpers.html.converters:
+
+  - Don't import ``render`` and ``sanitize`` from ``webhelpers.html.render``.
+
 * webhelpers.misc:
 
   - New helper ``flatten`` to interpolate embedded lists and tuples.

docs/modules/html/converters.rst

 
 .. autofunction:: nl2br
 
-.. autofunction:: render
-
-.. autofunction:: sanitize
-
 .. autofunction:: textilize

docs/modules/html/render.rst

 .. automodule:: webhelpers.html.render
 
 .. currentmodule:: webhelpers.html.render
+
+.. autofunction:: render
+
+.. autofunction:: sanitize

webhelpers/html/converters.py

 import re
 
 from webhelpers.html import HTML, escape, literal, lit_sub
-from webhelpers.html.render import render, sanitize
 import webhelpers.textile as textile
 
 __all__ = [
     "format_paragraphs",
     "markdown", 
     "nl2br",
-    "render",
-    "sanitize", 
     "textilize",
     ]
 

webhelpers/html/render.py

 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ##########################################################################
 """An HTML-to-text formatter and HTML sanitizer.
-
-``render()`` and ``sanitize()`` are imported to ``webhelpers.html.converters``,
-and should be used from there.
 """
 
 from HTMLParser import HTMLParser