add support for a second field
This commit is contained in:
parent
d5cc217971
commit
1e85a2ea84
4
uml.py
4
uml.py
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue