From: Jeremy Stanley Date: Fri, 10 Nov 2017 01:55:04 +0000 (+0000) Subject: Switch internal counters to new-style Element X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=294f48a91ccd63d9597c2697cabbe968249c8a99 Switch internal counters to new-style Element Convert the internal:counters Element to internal.counters following the new data model. --- 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 = (