projects
/
mudpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccabf1c
)
Data nodes starting with "_" are metadata
author
Jeremy Stanley
<fungi@yuggoth.org>
Sat, 16 Sep 2017 17:35:48 +0000
(17:35 +0000)
committer
Jeremy Stanley
<fungi@yuggoth.org>
Sat, 16 Sep 2017 17:35:48 +0000
(17:35 +0000)
Avoid loading data nodes with a "_" prefix as Universe content.
These are only used as file-local metadata.
mudpy/data.py
patch
|
blob
|
history
diff --git
a/mudpy/data.py
b/mudpy/data.py
index
99e6d21
..
77b2142
100644
(file)
--- a/
mudpy/data.py
+++ b/
mudpy/data.py
@@
-61,6
+61,8
@@
class Data:
if included not in includes:
includes.append(included)
continue
+ if node.startswith("_"):
+ continue
facet_pos = node.rfind(".") + 1
if not facet_pos:
mudpy.misc.Element(node, self.universe, self, old_style=True)