eric6/E5XML/XMLStreamReaderBase.py

changeset 7639
422fd05e9c91
parent 7628
f904d0eef264
child 7780
41420f82c0ac
equal deleted inserted replaced
7638:176145438b1e 7639:422fd05e9c91
160 elif self.name() == "complex": 160 elif self.name() == "complex":
161 real, imag = self.readElementText().split() 161 real, imag = self.readElementText().split()
162 val = float(real) + float(imag) * 1j 162 val = float(real) + float(imag) * 1j
163 elif self.name() == "string": 163 elif self.name() == "string":
164 val = self.readElementText() 164 val = self.readElementText()
165 elif self.name() == "unicode":
166 # backward compatibility to 4.6
167 val = self.readElementText()
168 elif self.name() == "bytes": 165 elif self.name() == "bytes":
169 by = bytes([int(b) for b in 166 by = bytes([int(b) for b in
170 self.readElementText().split(",")]) 167 self.readElementText().split(",")])
171 val = by 168 val = by
172 elif self.name() == "bytearray": 169 elif self.name() == "bytearray":

eric ide

mercurial