Re: piping input to an external script

2009-05-12 Thread Tim Arnold
"Dave Angel" wrote in message news:mailman.25.1242113076.8015.python-l...@python.org... > Tim Arnold wrote: >> Hi, I have some html files that I want to validate by using an external >> script 'validate'. The html files need a doctype header attached before >> validation. The files are in utf8

Re: piping input to an external script

2009-05-12 Thread Steve Howell
See suggested debugging tip inline of your program On May 11, 11:04 am, "Tim Arnold" wrote: > Hi, I have some html files that I want to validate by using an external > script 'validate'. The html files need a doctype header attached before > validation. The files are in utf8 encoding. My code

Re: piping input to an external script

2009-05-12 Thread norseman
Steve Howell wrote: On May 11, 11:31 pm, norseman wrote: Steve Howell wrote: On May 11, 10:16 pm, norseman wrote: Tim Arnold wrote: Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The

Re: piping input to an external script

2009-05-12 Thread Dave Angel
Tim Arnold wrote: Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The files are in utf8 encoding. My code: --- import os,sys import codecs,subprocess HEADER = '' filename =

Re: piping input to an external script

2009-05-11 Thread Steve Howell
On May 11, 11:31 pm, norseman wrote: > Steve Howell wrote: > > On May 11, 10:16 pm, norseman wrote: > >> Tim Arnold wrote: > >>> Hi, I have some html files that I want to validate by using an external > >>> script 'validate'. The html files need a doctype header attached before > >>> validation.

Re: piping input to an external script

2009-05-11 Thread norseman
Steve Howell wrote: On May 11, 10:16 pm, norseman wrote: Tim Arnold wrote: Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The files are in utf8 encoding. My code: --- import

Re: piping input to an external script

2009-05-11 Thread Steve Howell
On May 11, 10:16 pm, norseman wrote: > Tim Arnold wrote: > > Hi, I have some html files that I want to validate by using an external > > script 'validate'. The html files need a doctype header attached before > > validation. The files are in utf8 encoding. My code: > > --- > > import o

Re: piping input to an external script

2009-05-11 Thread norseman
Tim Arnold wrote: Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The files are in utf8 encoding. My code: --- import os,sys import codecs,subprocess HEADER = '' filename =

Re: piping input to an external script

2009-05-11 Thread Steve Howell
On May 11, 11:04 am, "Tim Arnold" wrote: > Hi, I have some html files that I want to validate by using an external > script 'validate'. The html files need a doctype header attached before > validation. The files are in utf8 encoding. My code: > --- > import os,sys > import codecs,subp

piping input to an external script

2009-05-11 Thread Tim Arnold
Hi, I have some html files that I want to validate by using an external script 'validate'. The html files need a doctype header attached before validation. The files are in utf8 encoding. My code: --- import os,sys import codecs,subprocess HEADER = '' filename = 'mytest.html' fd = c