Skip to content

Commit 87a048d

Browse files
Fix the indent width in plistlib.
1 parent 7b3e7e1 commit 87a048d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/plistlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def write_value(self, value):
376376
def write_bytes(self, data):
377377
self.begin_element("data")
378378
self._indent_level -= 1
379-
wrapcol = 76 - len(self.indent.expandtabs()) * self._indent_level
379+
wrapcol = 76 - len((self.indent * self._indent_level).expandtabs())
380380
wrapcol = max(16, wrapcol)
381381
encoded = binascii.b2a_base64(data, wrapcol=wrapcol, newline=False)
382382
for line in encoded.split(b"\n"):

0 commit comments

Comments
 (0)