Merge pull request #1932 from simoncozens/pscharstring-repeated-init
[misc.psCharStrings] Use inheritance to avoid repeated code in initializer
This commit is contained in:
commit
b81d13952a
@ -1150,10 +1150,7 @@ class T1CharString(T2CharString):
|
|||||||
operators, opcodes = buildOperatorDict(t1Operators)
|
operators, opcodes = buildOperatorDict(t1Operators)
|
||||||
|
|
||||||
def __init__(self, bytecode=None, program=None, subrs=None):
|
def __init__(self, bytecode=None, program=None, subrs=None):
|
||||||
if program is None:
|
super().__init__(bytecode, program)
|
||||||
program = []
|
|
||||||
self.bytecode = bytecode
|
|
||||||
self.program = program
|
|
||||||
self.subrs = subrs
|
self.subrs = subrs
|
||||||
|
|
||||||
def getIntEncoder(self):
|
def getIntEncoder(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user