[issue18926] plistlib - str converted to bool

2013-09-04 Thread Raymond Piller
New submission from Raymond Piller: A plist with: My key False will parse to a dict as: {'My key': False} Expected: {'My key': 'False'} If bool(False) is needed, the plist should say: My key -- messages: 196959 nosy: VertigoRay priority: normal severity: normal status: open title: pl

[issue18926] plistlib - str converted to bool

2013-09-04 Thread Ray
Ray added the comment: Disregard, I think. I'm not sure why, but my current app seems to be doing the converting. >>> import plistlib >>> pl = {'My key': 'False'} >>> plist = plistlib.writePlistToString(pl) >>> plist '\nhttp://www.apple.com/DTDs/PropertyList-1.0.dtd";>\n\n\n\tMy key\n\tFalse\