2to3 --fix=filter
This commit is contained in:
parent
7cc6d271ac
commit
28aeabb08b
@ -412,7 +412,7 @@ class EblcIndexSubTable:
|
|||||||
(name, (startByte, endByte)) = args
|
(name, (startByte, endByte)) = args
|
||||||
return startByte < endByte
|
return startByte < endByte
|
||||||
# Remove all skip glyphs.
|
# Remove all skip glyphs.
|
||||||
dataPairs = filter(isValidLocation, zip(self.names, self.locations))
|
dataPairs = list(filter(isValidLocation, zip(self.names, self.locations)))
|
||||||
self.names, self.locations = map(list, zip(*dataPairs))
|
self.names, self.locations = map(list, zip(*dataPairs))
|
||||||
|
|
||||||
# A closure for creating a custom mixin. This is done because formats 1 and 3
|
# A closure for creating a custom mixin. This is done because formats 1 and 3
|
||||||
|
@ -1220,7 +1220,7 @@ class cmap_format_14(CmapSubtable):
|
|||||||
for uvs in uvsList:
|
for uvs in uvsList:
|
||||||
entryList = uvsDict[uvs]
|
entryList = uvsDict[uvs]
|
||||||
|
|
||||||
defList = filter(lambda entry: entry[1] == None, entryList)
|
defList = [entry for entry in entryList if entry[1] == None]
|
||||||
if defList:
|
if defList:
|
||||||
defList = map(lambda entry: entry[0], defList)
|
defList = map(lambda entry: entry[0], defList)
|
||||||
defOVSOffset = offset
|
defOVSOffset = offset
|
||||||
@ -1247,7 +1247,7 @@ class cmap_format_14(CmapSubtable):
|
|||||||
else:
|
else:
|
||||||
defOVSOffset = 0
|
defOVSOffset = 0
|
||||||
|
|
||||||
ndefList = filter(lambda entry: entry[1] != None, entryList)
|
ndefList = [entry for entry in entryList if entry[1] != None]
|
||||||
if ndefList:
|
if ndefList:
|
||||||
nonDefUVSOffset = offset
|
nonDefUVSOffset = offset
|
||||||
ndefList.sort()
|
ndefList.sort()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user