Merge pull request #1697 from fonttools/fix-minor-type-errors
Fix minor type errors found with pytype
This commit is contained in:
commit
afdb967a28
@ -61,6 +61,7 @@ def lib_convertCFFToCFF2(cff, otFont):
|
||||
fdArray.append(fontDict)
|
||||
fontDict.Private = privateDict
|
||||
privateOpOrder = buildOrder(privateDictOperators2)
|
||||
if privateDict is not None:
|
||||
for entry in privateDictOperators:
|
||||
key = entry[1]
|
||||
if key not in privateOpOrder:
|
||||
|
@ -987,7 +987,7 @@ def parseArgs(args):
|
||||
try:
|
||||
axisLimits = parseLimits(options.locargs)
|
||||
except ValueError as e:
|
||||
parser.error(e)
|
||||
parser.error(str(e))
|
||||
|
||||
if len(axisLimits) != len(options.locargs):
|
||||
parser.error("Specified multiple limits for the same axis")
|
||||
|
Loading…
x
Reference in New Issue
Block a user