You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2019. It is now read-only.
We can't optimistically assume that all clients of ufoLib will be well-behaved and only pass unicode values whenever they intend to write textual data under python 2. Even the ufoLib's own validators simply check that the incoming values are instances of basestring (e.g. see fontinfo validators), which on python 2 of course includes both bytes and unicode types.
I think the best solution is to add support for the use_builtin_types option in plistlib.load/dump functions. When set to True, we get the current behavior. When set to False we get the legacy, deprecated behavior: ie. plistlib.Data (a thin wrapper around a bytes object) gets seralised to <data> elements, whereas basestring is written as <string> elements.