From 6065dac4a0ef8c17b872a283944103ef950f1682 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Sat, 18 Sep 2010 23:40:13 +0200 Subject: [PATCH] Renamed MoeStatus -> Status --- t/moe/eval.py | 2 +- t/moe/status.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/moe/eval.py b/t/moe/eval.py index 5a93480..5eaa110 100644 --- a/t/moe/eval.py +++ b/t/moe/eval.py @@ -20,7 +20,7 @@ class Eval: self.config = moe.config.ConfigTree() self.main_pipe = moe.pipeline.Pipeline(self, "main") self.test_pipe = moe.pipeline.Pipeline(self, "test") - self.status = moe.status.MoeStatus() + self.status = moe.status.Status() def __getitem__(self, key): return self.config[key] diff --git a/t/moe/status.py b/t/moe/status.py index 5a5adf2..76681c7 100644 --- a/t/moe/status.py +++ b/t/moe/status.py @@ -9,7 +9,7 @@ key_pattern = re.compile("^[A-Za-z0-9_-]+$") class MoeStatusInvalid(Exception): pass -class MoeStatus: +class Status: """Moe status file.""" def __init__(self): @@ -47,7 +47,7 @@ class MoeStatus: 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") @@ -102,7 +102,7 @@ class MoeStatus: 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 -- 2.39.2