From 1e85a2ea843794dfb358075b2286ce0b6d0d6492 Mon Sep 17 00:00:00 2001 From: randomuser Date: Wed, 30 Jun 2021 14:27:26 -0500 Subject: [PATCH] add support for a second field --- uml.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uml.py b/uml.py index 84dbf4c..40fe46b 100644 --- a/uml.py +++ b/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: