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": |