Commit d285a180 authored by Jérome Perrin's avatar Jérome Perrin

XMLExportImport: correctly export booleans as bool on py2

The ad-hoc handling of boolean in protocol 1 was not implemented
correctly and they were serialized as integers (0 for False and 1 for
True), this fixes the export code and re-export everything
parent 4483f759
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -274,10 +274,6 @@ class TestXMLPickle(XMLPickleTestCase):
class TestXMLPickleProtocol1(TestXMLPickle):
_pickle_protocol = 1
@unittest.expectedFailure
def test_bool(self):
super(TestXMLPickleProtocol1, self).test_bool()
class TestXMLPickleStringEncoding(XMLPickleTestCase):
def test_string_base64(self):
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -108,7 +108,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -69,7 +69,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -104,7 +104,7 @@
<dictionary>
<item>
<key> <string>_defined_in_class</string> </key>
<value> <int>1</int> </value>
<value> <bool>True</bool> </value>
</item>
<item>
<key> <string>_hookname</string> </key>
......
......@@ -534,7 +534,16 @@ class ToXMLUnpickler(Unpickler):
@register(INT)
def load_int(self):
self.append(Int(int(self.readline()[:-1]), self.id_mapping))
line = self.readline()[:-1]
# on protocol 1, bool are saved as int
# https://github.com/python/cpython/blob/b455a5a55cb1fd5bb6178a969e8ebd0e6e91b610/Lib/pickletools.py#L1173-L1179
if line == b'00':
val = Bool(False, self.id_mapping)
elif line == b'01':
val = Bool(True, self.id_mapping)
else:
val = Int(int(line), self.id_mapping)
self.append(val)
@register(BININT)
def load_binint(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment