class MoeStatusInvalid(Exception):
pass
-class MoeStatus:
+class Status:
"""Moe status file."""
def __init__(self):
if type(v) == types.ListType: vals = v
else: vals = [v]
for w in vals:
- if isinstance(w, MoeStatus):
+ if isinstance(w, Status):
l.append(prefix + k + "(\n")
l.extend(self.str_lines(prefix+" "))
l.append(prefix + ")\n")
this.read_val(k, v)
elif x.endswith("("):
k = x[:-1]
- new = MoeStatus()
+ new = Status()
this.read_val(k, new)
stk.append(this)
this = new