E5XML/XMLWriterBase.py

changeset 245
de5c4effc747
parent 110
c9a969db1469
child 412
569efd7f2716
child 792
a13346916170
equal deleted inserted replaced
243:a1d982e68edf 245:de5c4effc747
5 5
6 """ 6 """
7 Module implementing a base class for all of eric5s XML writers. 7 Module implementing a base class for all of eric5s XML writers.
8 """ 8 """
9 9
10 import os
11 import pickle 10 import pickle
12 import base64 11 import base64
13 12
14 class XMLWriterBase(object): 13 class XMLWriterBase(object):
15 """ 14 """
48 47
49 @param s string to be written to the XML file 48 @param s string to be written to the XML file
50 @param newline flag indicating a linebreak 49 @param newline flag indicating a linebreak
51 """ 50 """
52 self.pf.write("%s%s" % (s, 51 self.pf.write("%s%s" % (s,
53 newline and os.linesep or "")) 52 newline and "\n" or ""))
54 53
55 def writeXML(self): 54 def writeXML(self):
56 """ 55 """
57 Public method to write the XML to the file. 56 Public method to write the XML to the file.
58 """ 57 """

eric ide

mercurial