scripts: Adopted Attr class changes in all scripts

Mainly the addition of Attr.getall, Attr.get, and changing
Attr.__getitem__ to raise KeyError (just like a normal dict).
This commit is contained in:
Christopher Haster
2025-04-10 15:49:32 -05:00
parent b715e9a749
commit 06bb34fd99
9 changed files with 368 additions and 49 deletions
-1
View File
@@ -234,7 +234,6 @@ class RingIO:
sys.stdout.write('\x1b[%dB' % (len(lines)-1-i))
sys.stdout.flush()
# TODO sync, espcially the getitem vs get changes
# a representation of optionally key-mapped attrs
class Attr:
def __init__(self, attrs, defaults=None):