don't print extra error info to stdout
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@136 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
5810aa9967
commit
b68a700595
@ -262,7 +262,7 @@ class T1CharString(T2CharString):
|
||||
operators = _buildOperatorDict(t1Operators)
|
||||
|
||||
def decompile(self):
|
||||
if hasattr(self, "program"):
|
||||
if self.program is not None:
|
||||
return
|
||||
program = []
|
||||
index = 0
|
||||
|
@ -167,11 +167,12 @@ class PSInterpreter(PSOperators):
|
||||
self.tokenizer = None
|
||||
finally:
|
||||
if self.tokenizer is not None:
|
||||
print 'ps error:\n- - - - - - -'
|
||||
print self.tokenizer.buf[self.tokenizer.pos-50:self.tokenizer.pos]
|
||||
print '>>>'
|
||||
print self.tokenizer.buf[self.tokenizer.pos:self.tokenizer.pos+50]
|
||||
print '- - - - - - -'
|
||||
if 0:
|
||||
print 'ps error:\n- - - - - - -'
|
||||
print self.tokenizer.buf[self.tokenizer.pos-50:self.tokenizer.pos]
|
||||
print '>>>'
|
||||
print self.tokenizer.buf[self.tokenizer.pos:self.tokenizer.pos+50]
|
||||
print '- - - - - - -'
|
||||
|
||||
def handle_object(self, object):
|
||||
if not (self.proclevel or object.literal or object.type == 'proceduretype'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user