Skip to content

Commit 9c0c494

Browse files
committed
Fix typo
1 parent 5687377 commit 9c0c494

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/freetypy/subset.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _calc_checksum(self, content):
147147

148148
@classmethod
149149
def read(cls, fd):
150-
header = Table.header_struct.read(fd)
150+
header = _Table.header_struct.read(fd)
151151
content = fd.read(header['length'])
152152

153153
return cls(header, content)
@@ -286,13 +286,13 @@ def read(cls, fd):
286286

287287
table_dir = []
288288
for i in range(header['numTables']):
289-
table_dir.append(Table.header_struct.read(fd))
289+
table_dir.append(_Table.header_struct.read(fd))
290290

291291
tables = OrderedDict()
292292
for table_header in table_dir:
293293
fd.seek(table_header['offset'])
294294
content = fd.read(table_header['length'])
295-
table_cls = SPECIAL_TABLES.get(table_header['tag'], Table)
295+
table_cls = SPECIAL_TABLES.get(table_header['tag'], _Table)
296296
tables[table_header['tag']] = table_cls(table_header, content)
297297

298298
fd.seek(0)
@@ -319,14 +319,14 @@ def write(self, fd):
319319
self.header_struct.write(fd, self._header)
320320

321321
offset = (self.header_struct.size +
322-
Table.header_struct.size * len(self._tables))
322+
_Table.header_struct.size * len(self._tables))
323323

324324
for table in self._tables.values():
325325
table.header['offset'] = offset
326326
offset += len(table.content)
327327

328328
for table in self._tables.values():
329-
Table.header_struct.write(fd, table.header)
329+
_Table.header_struct.write(fd, table.header)
330330

331331
for table in self._tables.values():
332332
fd.write(table._content)

0 commit comments

Comments
 (0)