misc/pysymbols: Move IsaSymbolsException to a separate file.
This commit is contained in:
parent
71143907be
commit
de77df45aa
|
@ -11,5 +11,5 @@
|
||||||
# @TAG(NICTA_BSD)
|
# @TAG(NICTA_BSD)
|
||||||
#
|
#
|
||||||
|
|
||||||
from .isasymbols import IsaSymbolsException, Symbol, make_translator, \
|
from .exception import IsaSymbolsException
|
||||||
Translator
|
from .isasymbols import Symbol, make_translator, Translator
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright 2016, NICTA
|
||||||
|
#
|
||||||
|
# This software may be distributed and modified according to the terms of
|
||||||
|
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
|
||||||
|
# See "LICENSE_BSD2.txt" for details.
|
||||||
|
#
|
||||||
|
# @TAG(NICTA_BSD)
|
||||||
|
#
|
||||||
|
|
||||||
|
class IsaSymbolsException(Exception):
|
||||||
|
pass
|
|
@ -12,9 +12,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
import codecs, collections, numbers, re, types
|
import codecs, collections, numbers, re, types
|
||||||
|
from .exception import IsaSymbolsException
|
||||||
class IsaSymbolsException(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class Symbol(object):
|
class Symbol(object):
|
||||||
def __init__(self, ascii_text, code_point, group=None, font=None,
|
def __init__(self, ascii_text, code_point, group=None, font=None,
|
||||||
|
|
Loading…
Reference in New Issue