Raising strings is deprecated in Python 2.5, raise an exception instead.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@569 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
0e2aecec53
commit
86368e7ac0
@ -173,7 +173,11 @@ def _makeDict(instructionList):
|
||||
streamOpcodeDict, streamMnemonicDict = _makeDict(streamInstructions)
|
||||
opcodeDict, mnemonicDict = _makeDict(instructions)
|
||||
|
||||
tt_instructions_error = "TT instructions error"
|
||||
class tt_instructions_error(Exception):
|
||||
def __init__(self, error):
|
||||
self.error = error
|
||||
def __str__(self):
|
||||
return "TT instructions error: %s" % repr(self.error)
|
||||
|
||||
|
||||
_comment = r"/\*.*?\*/"
|
||||
|
Loading…
x
Reference in New Issue
Block a user