diff options
Diffstat (limited to 'Lib/plat-mac/plistlib.py')
-rw-r--r-- | Lib/plat-mac/plistlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index 49bd556..e61c4a4 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): |