]> mj.ucw.cz Git - eval.git/commitdiff
Renamed MoeStatus -> Status
authorTomas Gavenciak <gavento@ucw.cz>
Sat, 18 Sep 2010 21:40:13 +0000 (23:40 +0200)
committerTomas Gavenciak <gavento@ucw.cz>
Sat, 18 Sep 2010 21:40:13 +0000 (23:40 +0200)
t/moe/eval.py
t/moe/status.py

index 5a93480a638461787be5b5a7a01ab0df67634f56..5eaa11004b01c3a9402433e4b9d9584de43bbb8c 100644 (file)
@@ -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]
index 5a5adf22c5b4851b572ff955ca08a0814eacb903..76681c7b4739fb2f499e92259002234ae9147786 100644 (file)
@@ -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