Re: [Tutor] changin two lines in a single python script

2008-05-23 Thread Kent Johnson
On Wed, May 21, 2008 at 10:51 AM, jatinder Singh <[EMAIL PROTECTED]> wrote: > Hi . > >I am trying to change two lines in a single file (etc/php.ini) but my > script is not doing this in one time . See my answer to your almost identical question last week about modifying httpd.conf. Kent

Re: [Tutor] changin two lines in a single python script

2008-05-21 Thread bob gailer
1) When starting a new topic start a new email rather than replying to another unrelated post. 2) jatinder Singh wrote: Hi . I am trying to change two lines in a single file (etc/php.ini) but my script is not doing this in one time .Please hav a look import re import sys import os def

Re: [Tutor] changin two lines in a single python script

2008-05-21 Thread bob gailer
1) When starting a new topic start a new email rather than replying to another unrelated post. 2) jatinder Singh wrote: Hi . I am trying to change two lines in a single file (etc/php.ini) but my script is not doing this in one time .Please hav a look import re import sys import os def

[Tutor] changin two lines in a single python script

2008-05-21 Thread jatinder Singh
Hi . I am trying to change two lines in a single file (etc/php.ini) but my script is not doing this in one time .Please hav a look import re import sys import os def re_new(pat, rep, s): print re.sub(pat, rep, s) _stext_1 = 'memory_limit...M'#first word to se