mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Fixed #1687: plistlib.py restricts <integer> to Python int when writing
This commit is contained in:
parent
2f6621cce7
commit
0613188bc3
2 changed files with 4 additions and 2 deletions
|
@ -240,8 +240,8 @@ class PlistWriter(DumbXMLWriter):
|
||||||
self.simpleElement("true")
|
self.simpleElement("true")
|
||||||
else:
|
else:
|
||||||
self.simpleElement("false")
|
self.simpleElement("false")
|
||||||
elif isinstance(value, int):
|
elif isinstance(value, (int, long)):
|
||||||
self.simpleElement("integer", str(value))
|
self.simpleElement("integer", "%d" % value)
|
||||||
elif isinstance(value, float):
|
elif isinstance(value, float):
|
||||||
self.simpleElement("real", repr(value))
|
self.simpleElement("real", repr(value))
|
||||||
elif isinstance(value, dict):
|
elif isinstance(value, dict):
|
||||||
|
|
|
@ -336,6 +336,8 @@ Core and builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Bug #1687: Fxed plistlib.py restricts <integer> to Python int when writing
|
||||||
|
|
||||||
- Issue #1700: Regular expression inline flags incorrectly handle certain
|
- Issue #1700: Regular expression inline flags incorrectly handle certain
|
||||||
unicode characters.
|
unicode characters.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue