(self, file)
| 112 | """ |
| 113 | |
| 114 | def __init__(self, file): |
| 115 | self.__write = file.write |
| 116 | if hasattr(file, "flush"): |
| 117 | self.flush = file.flush |
| 118 | self.__open = 0 # true if start tag is open |
| 119 | self.__tags = [] |
| 120 | self.__data = [] |
| 121 | self.__indentation = " " * 64 |
| 122 | |
| 123 | def __flush(self, indent=True): |
| 124 | # flush internal buffers |