Skip to content

Commit f6dd160

Browse files
committed
[odmlparser] Remove outdated method
The functionality of 'is_valid_attribute' has already previously been migrated to dict_parser.
1 parent 577c900 commit f6dd160

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

odml/tools/odmlparser.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,6 @@ def __init__(self, parser='XML'):
102102
self.parser = parser
103103
self.warnings = []
104104

105-
def is_valid_attribute(self, attr, fmt):
106-
if attr in fmt.arguments_keys:
107-
return attr
108-
109-
if fmt.revmap(attr):
110-
return attr
111-
112-
msg = "Invalid element <%s> inside <%s> tag" % (attr, fmt.__class__.__name__)
113-
print(msg)
114-
self.warnings.append(msg)
115-
return None
116-
117105
def from_file(self, file, doc_format=None):
118106

119107
if self.parser == 'XML':

0 commit comments

Comments
 (0)