Switch internal counters to new-style Element
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 10 Nov 2017 01:55:04 +0000 (01:55 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 10 Nov 2017 01:55:04 +0000 (01:55 +0000)
Convert the internal:counters Element to internal.counters following
the new data model.

mudpy/misc.py
mudpy/tests/selftest.py

index 231858a..202b6b2 100644 (file)
@@ -1401,7 +1401,7 @@ def on_pulse():
 
     # add an element for counters if it doesn't exist
     if "counters" not in universe.categories.get("internal", {}):
-        Element("internal:counters", universe, old_style=True)
+        Element("internal.counters", universe)
 
     # update the log every now and then
     if not universe.categories["internal"]["counters"].get("mark"):
index 5adc43c..1b9c81b 100644 (file)
@@ -181,7 +181,7 @@ test_show_files = (
 test_show_file = (
     (2, "> ", "show file %s" %
         os.path.join(os.getcwd(), "data/internal.yaml")),
-    (2, "These are the nodes in the.*file:.*internal:counters.*> ", ""),
+    (2, r'These are the nodes in the.*file:.*internal\.counters.*> ', ""),
 )
 
 test_show_element = (