Skip to content

Commit efcb8c5

Browse files
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 6969658 commit efcb8c5

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Lib/plistlib.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,6 @@ def _get_size(self, tokenL):
509509
return tokenL
510510

511511
def _read(self, size):
512-
if 0:
513-
data = self._fp.read(size)
514-
if len(data) != size:
515-
raise InvalidFileException
516-
return data
517512
cursize = min(size, 1 << 20)
518513
data = self._fp.read(cursize)
519514
while True:
@@ -527,8 +522,6 @@ def _read(self, size):
527522

528523
def _read_ints(self, n, size):
529524
data = self._read(size * n)
530-
#print('XXX', n, size)
531-
#assert n < 100
532525
if size in _BINARY_FORMAT:
533526
return struct.unpack(f'>{n}{_BINARY_FORMAT[size]}', data)
534527
else:

0 commit comments

Comments
 (0)