add support for a second field

This commit is contained in:
randomuser 2021-06-30 14:27:26 -05:00
parent d5cc217971
commit 1e85a2ea84
1 changed files with 3 additions and 1 deletions

4
uml.py
View File

@ -7,9 +7,11 @@ class ParsingError(UntitledError): pass
class MiscError(UntitledError): pass
class Element:
def __init__(self, element, data=None):
def __init__(self, element, data=None, data2=None):
if not data: self.data = ""
else: self.data = data
if not data2: self.data2 = ""
else: self.data2 = data2
self.element = element
def append(self, string, space=False):
if type(data) == str: