En Fri, 06 Jul 2007 03:44:20 -0300, <[EMAIL PROTECTED]> escribió: > Thats right I don't need the output any where so I don't need to use the > writer. I can remove it wowever will the formater work since it needs > writer? Maybe I can use the Null writer?
Exactly. Look at the HTMLParser module too; depending on your needs, it may be easier to use. > -------------- Original message ---------------------- > From: "Gabriel Genellina" <[EMAIL PROTECTED]> >> En Thu, 05 Jul 2007 20:23:08 -0300, <[EMAIL PROTECTED]> escribió: >> > >> > Even though I don't use any print statements, the htmllib seems to be >> > throwing parts of the html page on to the standard out(my screen in >> this >> > case). Is there a way to disable the output? >> > >> > import htmllib >> > w = formatter.DumbWriter() >> >> Change the above line. From >> http://docs.python.org/lib/writer-impls.html: >> "class DumbWriter([file[, maxcol = 72]]) >> Simple writer class which writes output on the file object passed in as >> file or, if file is omitted, on standard output." -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list