Commit cf317f2e authored by Christian Heimes's avatar Christian Heimes

Fixed #1687: plistlib.py restricts <integer> to Python int when writing

parent 8599350a
......@@ -240,8 +240,8 @@ class PlistWriter(DumbXMLWriter):
self.simpleElement("true")
else:
self.simpleElement("false")
elif isinstance(value, int):
self.simpleElement("integer", str(value))
elif isinstance(value, (int, long)):
self.simpleElement("integer", "%d" % value)
elif isinstance(value, float):
self.simpleElement("real", repr(value))
elif isinstance(value, dict):
......
......@@ -336,6 +336,8 @@ Core and builtins
Library
-------
- Bug #1687: Fxed plistlib.py restricts <integer> to Python int when writing
- Issue #1700: Regular expression inline flags incorrectly handle certain
unicode characters.
......
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