pychecker fixes

svn: r321
This commit is contained in:
Don Allingham
2001-08-10 04:32:31 +00:00
parent 7d4f264c29
commit 8744ab9835
23 changed files with 55 additions and 157 deletions

View File

@@ -68,14 +68,6 @@ _t0 = {
0xDF : chr(0xCF), 0xDE : chr(0xA4), 0xFE : chr(0xB4), 0xD8 : chr(0xA2),
0xF8 : chr(0xB3), 0xC6 : chr(0xA5), 0xE6 : chr(0xB5), 0xBA : chr(0xF0) }
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
import cStringIO
#-------------------------------------------------------------------------
#
#
@@ -86,7 +78,7 @@ def ansel_to_latin(s):
while s:
try:
head,s = ansel_to_code(s)
except Exception,e:
except Exception:
from traceback import print_exc
print_exc()
head = s[0]
@@ -116,7 +108,7 @@ def latin_to_ansel(s):
ansel = _t1[c]
buff.write(ansel[0])
buff.write(ansel[1])
except Exception,e:
except Exception:
print "ANSEL decoding error: %x: %s" % (c,orig)
s = s[1:]
ans = buff.getvalue()