1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-20 05:03:35 +02:00

Removing couple of "buildins" polyglot types

This commit is contained in:
2020-04-20 20:22:50 +02:00
parent eac0b98d6f
commit c867f0321b
36 changed files with 85 additions and 109 deletions

View File

@@ -5,7 +5,6 @@ Read the header data from a pdb file.
import re
import struct
import time
from ebook_converter.polyglot.builtins import long_type
__license__ = 'GPL v3'
@@ -83,6 +82,6 @@ class PdbHeaderBuilder(object):
offset = 78 + (8 * nrecords) + 2
for id, record in enumerate(section_lengths):
out_stream.write(struct.pack('>LBBBB', long_type(offset), 0, 0, 0, 0))
out_stream.write(struct.pack('>LBBBB', int(offset), 0, 0, 0, 0))
offset += record
out_stream.write(b'\x00\x00')