diff options
author | XANTRONIX Development | 2021-12-30 21:40:04 -0500 |
---|---|---|
committer | XANTRONIX Development | 2021-12-30 21:40:04 -0500 |
commit | a37783ef4efca7b469c43cb7935278ec7de7f773 (patch) | |
tree | b633edca349aebd597fbc1152e24d356ec6778e7 /lib/xas/message.py | |
parent | 47ba5182a93af5ac552d87f92ca31b523e05a71d (diff) | |
download | xas-a37783ef4efca7b469c43cb7935278ec7de7f773.tar.gz xas-a37783ef4efca7b469c43cb7935278ec7de7f773.tar.bz2 xas-a37783ef4efca7b469c43cb7935278ec7de7f773.zip |
rename lib/ to py/ for ~reasons~
Diffstat (limited to 'lib/xas/message.py')
-rw-r--r-- | lib/xas/message.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/xas/message.py b/lib/xas/message.py deleted file mode 100644 index e297e40..0000000 --- a/lib/xas/message.py +++ /dev/null @@ -1,24 +0,0 @@ -class Formatter(): - def __init__(self, id: int, db): - self.id = id - self.db = db - - def fmt(self, lookup, code, text=None): - status = lookup(code) - output = "%04d :: Code %03d" % (self.id, code) - - if status.typeobj.name == status.description: - output += " :: " + status.typeobj.name - else: - output += " :: " + status.description - - if text is not None: - output += " :: " + text - - return output - - def message(self, code, text=None): - return self.fmt(self.db.status, code, text) - - def error(self, code, text=None): - return self.fmt(self.db.error, code, text) |