Re: Error Occurs: Replace a character in a String

2010-04-10 Thread Patrick Maupin
On Apr 11, 12:01 am, Jimbo wrote: > Hello, I am getting an error in my python script when I try to change > a character in a string. [b]But I dont know why or what to do to fix > it?[/b] > > I have commented in my code where the error occurs > > [code] > def format_file(filename): > >     HTML_fil

Re: Error Occurs: Replace a character in a String

2010-04-10 Thread Steven D'Aprano
On Sat, 10 Apr 2010 22:01:51 -0700, Jimbo wrote: > Hello, I am getting an error in my python script when I try to change a > character in a string. [b]But I dont know why or what to do to fix > it?[/b] > > I have commented in my code where the error occurs Generally speaking, posting the actual

Error Occurs: Replace a character in a String

2010-04-10 Thread Jimbo
Hello, I am getting an error in my python script when I try to change a character in a string. [b]But I dont know why or what to do to fix it?[/b] I have commented in my code where the error occurs [code] def format_file(filename): HTML_file = open(filename,'r') HTML_source = HTML_file