summaryrefslogtreecommitdiffstats
path: root/contrib/python/fonttools/fontTools/ttLib/sfnt.py
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-07-31 11:14:11 +0300
committerrobot-piglet <[email protected]>2025-07-31 12:10:37 +0300
commite177928be72df9669dbb830824b4233a33c8723f (patch)
treea91d4ec6bbe7dc221c049475a91255c2996fd84e /contrib/python/fonttools/fontTools/ttLib/sfnt.py
parenta1700abf3c749b43117e757deb259d2a7bcdf46a (diff)
Intermediate changes
commit_hash:60aaacde4a6a0fb68b6435d7f100365d0c77d64d
Diffstat (limited to 'contrib/python/fonttools/fontTools/ttLib/sfnt.py')
-rw-r--r--contrib/python/fonttools/fontTools/ttLib/sfnt.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/python/fonttools/fontTools/ttLib/sfnt.py b/contrib/python/fonttools/fontTools/ttLib/sfnt.py
index 6cc867a4d7c..a9d07e615de 100644
--- a/contrib/python/fonttools/fontTools/ttLib/sfnt.py
+++ b/contrib/python/fonttools/fontTools/ttLib/sfnt.py
@@ -375,10 +375,9 @@ class SFNTWriter(object):
def _calcMasterChecksum(self, directory):
# calculate checkSumAdjustment
- tags = list(self.tables.keys())
checksums = []
- for i in range(len(tags)):
- checksums.append(self.tables[tags[i]].checkSum)
+ for tag in self.tables.keys():
+ checksums.append(self.tables[tag].checkSum)
if self.DirectoryEntry != SFNTDirectoryEntry:
# Create a SFNT directory for checksum calculation purposes