Re: Logging module: problem with some mapping keys

2006-12-13 Thread sim.sim
Hi, i've check documentation, and found that logging.basicConfig takes no arguments (probably we have different versions of logging package), and i've never used it. just try this: fileName = 'testlog.log' logName = 'LOG' iHandler = logging.FileHandler(fileName) iHandler.setFormatter( logging.F

xml.dom.minidom: how to preserve CRLF's inside CDATA?

2007-05-22 Thread sim.sim
Hi all. i'm faced to trouble using minidom: #i have a string (xml) within CDATA section, and the section includes "\r\n": iInStr = '\n\n' #After i create DOM-object, i get the value of "Data" without "\r\n" from xml.dom import minidom iDoc = minidom.parseString(iInStr) iDoc.childNodes[0].childN

xml.dom.minidom: how to preserve CRLF's inside CDATA?

2007-05-22 Thread sim.sim
Hi all. i'm faced to trouble using minidom: #i have a string (xml) within CDATA section, and the section includes "\r\n": iInStr = '\n\n' #After i create DOM-object, i get the value of "Data" without "\r\n" from xml.dom import minidom iDoc = minidom.parseString(iInStr) iDoc.childNodes[0].childN

just a bug (was: xml.dom.minidom: how to preserve CRLF's inside CDATA?)

2007-05-25 Thread sim.sim
On 22 май, 16:45, "sim.sim" <[EMAIL PROTECTED]> wrote: > Hi all. > i'm faced to trouble using minidom: > > #i have a string (xml) within CDATA section, and the section includes > "\r\n": > iInStr = '\n\n' > > #After i create DOM-

Re: just a bug (was: xml.dom.minidom: how to preserve CRLF's inside CDATA?)

2007-05-25 Thread sim.sim
On 25 май, 12:45, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, sim.sim wrote: > > Below the code that tryes to parse an well-formed xml, but it fails > > with error message: > > "not well-formed (invalid token): lin

are there some special about '\x1a' symbol

2009-01-10 Thread sim.sim
Hi all! I had touch with some different python behavior: I was tried to write into a file a string with the '\x1a' symbol, and for FreeBSD system, it gives expected result: >>> open("test", "w").write('before\x1aafter') >>> open('test').read() 'before\x1aafter' but for my WinXP box, it gives so

Re: are there some special about '\x1a' symbol

2009-01-12 Thread sim.sim
On 10 янв, 23:40, John Machin wrote: > On Jan 11, 2:45 am, "sim.sim" wrote: > > > > > Hi all! > > > I had touch with some different python behavior: I was tried to write > > into a file a string with the '\x1a' symbol, and for FreeBSD syste

Re: are there some special about '\x1a' symbol

2009-01-13 Thread sim.sim
On 12 янв, 16:00, John Machin wrote: > On Jan 13, 12:45 am, "sim.sim" wrote: > > > > > On 10 ÑÎ×, 23:40, John Machin wrote: > > > > On Jan 11, 2:45šam, "sim.sim" wrote: > > > > > Hi all! > > > > > I had touch