diff options
author | Just van Rossum <just@letterror.com> | 2003-07-10 14:26:06 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-07-10 14:26:06 (GMT) |
commit | 87316ec96207a85b6ad8d93b28e4130373556248 (patch) | |
tree | 9734698789c422ebe8641f54069c6a9494e3b7f4 | |
parent | aefae5570dddbf9f90b4c19b63aaeed6b43cedb6 (diff) | |
download | cpython-87316ec96207a85b6ad8d93b28e4130373556248.zip cpython-87316ec96207a85b6ad8d93b28e4130373556248.tar.gz cpython-87316ec96207a85b6ad8d93b28e4130373556248.tar.bz2 |
don't optimize empty strings
-rw-r--r-- | Lib/plat-mac/plistlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index 1556d5f..5f2c47f 100644 --- a/Lib/plat-mac/plistlib.py +++ b/Lib/plat-mac/plistlib.py @@ -88,7 +88,7 @@ class DumbXMLWriter: self.writeln("</%s>" % element) def simpleElement(self, element, value=None): - if value: + if value is not None: value = _encode(value) self.writeln("<%s>%s</%s>" % (element, value, element)) else: |