[New-bugs-announce] [issue14835] plistlib: output empty elements correctly

Sidney San Martín report at bugs.python.org
Thu May 17 00:17:23 CEST 2012

New submission from Sidney San Martín <s at sidneysm.com>:

plistlib’s output is currently byte-for-byte identical to Apple’s, except arrays and dictionaries are stored with self-closing tags (e.g. '<array/>') and plistlib outputs empty tags with a newline (e.g. '<array>\n</array>').

This tiny patch makes its output for empty arrays and dictionaries consistent with the OS’s.

assignee: ronaldoussoren
components: Library (Lib), Macintosh
files: plistlib_empty_objects.patch
keywords: patch
messages: 160934
nosy: ronaldoussoren, ssm
priority: normal
severity: normal
status: open
title: plistlib: output empty elements correctly
type: behavior
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file25620/plistlib_empty_objects.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list