From: Georg Brandl Date: Sat, 19 Jan 2008 20:34:19 +0000 (+0000) Subject: Backport r59688. X-Git-Tag: v2.5.2c1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7829d603a8f573ed393d00f26b7b81f18d1e8197;p=python Backport r59688. --- diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index 49bd5563c9..e61c4a4471 100644 --- a/Lib/plat-mac/plistlib.py +++ b/Lib/plat-mac/plistlib.py @@ -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): diff --git a/Misc/NEWS b/Misc/NEWS index f4b98deb67..08181e6047 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -53,6 +53,8 @@ Core and builtins Library ------- +- Bug #1687: Fixed plistlib.py restricts 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