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 }}
Repository navigation
Incorrect calculation of indentation width in case of mixed tabs and spaces in plistlib #143346
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.
Activity
pythongh-143346: Fix calculation of the line width for wrapped Base64…
serhiy-storchaka commentedon Jan 2, 2026
#143347 fixes the calculation.
Other way -- just remove the
indentparameter and hardcode its value.pythongh-143346: Fix calculation of the line width for wrapped Base64…
gh-143346: Fix calculation of the line width for wrapped Base64 in pl…
pythongh-143346: Fix calculation of the line width for wrapped Base64…
pythongh-143346: Fix calculation of the line width for wrapped Base64…
[3.13] gh-143346: Fix calculation of the line width for wrapped Base6…
[3.14] gh-143346: Fix calculation of the line width for wrapped Base6…
pythongh-143346: Fix calculation of the line width for wrapped Base64…
pythongh-143346: Fix calculation of the line width for wrapped Base64…