From 2c802b7839277c999f3badec8e0747713b639012 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 25 May 2021 08:12:15 +0530 Subject: [PATCH] Fix #1929465 [Plucker code Python 2 issues](https://bugs.launchpad.net/calibre/+bug/1929465) --- src/calibre/ebooks/pdb/plucker/reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/pdb/plucker/reader.py b/src/calibre/ebooks/pdb/plucker/reader.py index d23e362066..3da2443746 100644 --- a/src/calibre/ebooks/pdb/plucker/reader.py +++ b/src/calibre/ebooks/pdb/plucker/reader.py @@ -147,8 +147,8 @@ class SectionHeader(object): self.uid, = struct.unpack('>H', raw[0:2]) self.paragraphs, = struct.unpack('>H', raw[2:4]) self.size, = struct.unpack('>H', raw[4:6]) - self.type, = struct.unpack('>B', raw[6]) - self.flags, = struct.unpack('>B', raw[7]) + self.type, = struct.unpack('>B', raw[6:7]) + self.flags, = struct.unpack('>B', raw[7:8]) class SectionHeaderText(object):