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
There is the indent parameter in plistlib._PlistWriter, which is b'\t' by default. write_bytes() calculates the width of the indentation, but doe it incorrect if the indentation is a mix of tabs and spaces.
Now, there is no public API to specify indent. it is always b'\t', for which an incorrect code works correctly. But if someone uses private plistlib._PlistWriter, they can encounter that bug.
Bug report
There is the
indentparameter inplistlib._PlistWriter, which isb'\t'by default.write_bytes()calculates the width of the indentation, but doe it incorrect if the indentation is a mix of tabs and spaces.Now, there is no public API to specify
indent. it is alwaysb'\t', for which an incorrect code works correctly. But if someone uses privateplistlib._PlistWriter, they can encounter that bug.Linked PRs