From b47129ad779aee1708e092e0538d7301c38aa850 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 10 Nov 2017 01:55:04 +0000 Subject: [PATCH] Switch internal counters to new-style Element Convert the internal:counters Element to internal.counters following the new data model. --- mudpy/misc.py | 2 +- mudpy/tests/selftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mudpy/misc.py b/mudpy/misc.py index 231858a..202b6b2 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -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"): diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 5adc43c..1b9c81b 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -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 = ( -- 2.11.0