summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-07-10 14:26:06 (GMT)
committerJust van Rossum <just@letterror.com>2003-07-10 14:26:06 (GMT)
commit87316ec96207a85b6ad8d93b28e4130373556248 (patch)
tree9734698789c422ebe8641f54069c6a9494e3b7f4 /Lib/plat-mac
parentaefae5570dddbf9f90b4c19b63aaeed6b43cedb6 (diff)
downloadcpython-87316ec96207a85b6ad8d93b28e4130373556248.zip
cpython-87316ec96207a85b6ad8d93b28e4130373556248.tar.gz
cpython-87316ec96207a85b6ad8d93b28e4130373556248.tar.bz2
don't optimize empty strings
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/plistlib.py2
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: