misc/pysymbols: Move IsaSymbolsException to a separate file.

This commit is contained in:
Matthew Fernandez 2016-01-08 15:43:57 +11:00 committed by Matthew Fernandez
parent 71143907be
commit de77df45aa
3 changed files with 18 additions and 5 deletions

View File

@ -11,5 +11,5 @@
# @TAG(NICTA_BSD)
#
from .isasymbols import IsaSymbolsException, Symbol, make_translator, \
Translator
from .exception import IsaSymbolsException
from .isasymbols import Symbol, make_translator, Translator

View File

@ -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

View File

@ -12,9 +12,7 @@
#
import codecs, collections, numbers, re, types
class IsaSymbolsException(Exception):
pass
from .exception import IsaSymbolsException
class Symbol(object):
def __init__(self, ascii_text, code_point, group=None, font=None,