Remi Delon  committed a30f9b6

Small change to tidyfilter

  • Participants
  • Parent commits 5cb0d56
  • Branches cherrypy

Comments (0)

Files changed (1)

File lib/filter/

 import os, cgi
 from basefilter import BaseOutputFilter
 from cherrypy import cpg
-import HTMLParser
 class TidyFilter(BaseOutputFilter):
         # so we just collect the body and work with it.
         originalBody = ''.join(cpg.response.body)
         cpg.response.body = [originalBody]
-        p = HTMLParser.HTMLParser()
         fct = cpg.response.headerMap.get('Content-Type', '')