Skip to content

Commit

Permalink
Merge pull request #1932 from simoncozens/pscharstring-repeated-init
Browse files Browse the repository at this point in the history
[misc.psCharStrings] Use inheritance to avoid repeated code in initializer
  • Loading branch information
anthrotype committed May 11, 2020
2 parents 74867c6 + b69052d commit b81d139
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/fontTools/misc/psCharStrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1150,10 +1150,7 @@ class T1CharString(T2CharString):
operators, opcodes = buildOperatorDict(t1Operators)

def __init__(self, bytecode=None, program=None, subrs=None):
if program is None:
program = []
self.bytecode = bytecode
self.program = program
super().__init__(bytecode, program)
self.subrs = subrs

def getIntEncoder(self):
Expand Down

0 comments on commit b81d139

Please sign in to comment.