Commit 7829d603 authored by Georg Brandl's avatar Georg Brandl

Backport r59688.

parent ea72dcb0
......@@ -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):
......
......@@ -53,6 +53,8 @@ Core and builtins
Library
-------
- Bug #1687: Fixed plistlib.py restricts <integer> to Python int when writing.
- Issue #1182: many arithmetic bugs in the decimal module have been
fixed, and the decimal module has been updated to comply with the
latest IBM Decimal Arithmetic specification (version 1.66) and
......
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