From 50167d993a7cba087e14d3a269d42241c4cb8017 Mon Sep 17 00:00:00 2001 From: Brian Cantoni Date: Tue, 2 Aug 2022 18:19:48 -0700 Subject: [PATCH 1/2] Remove extra print statement recently added for debugging --- tableaudocumentapi/field.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tableaudocumentapi/field.py b/tableaudocumentapi/field.py index 54d2446..0da6d84 100644 --- a/tableaudocumentapi/field.py +++ b/tableaudocumentapi/field.py @@ -70,7 +70,6 @@ def _initialize_from_metadata_xml(self, xmldata): self._apply_attribute(xmldata, field_name, lambda x: getattr(xmldata.find('.//{}'.format(metadata_name)), 'text', None), read_name=metadata_name) - print(metadata_name, field_name) self.apply_metadata(xmldata) @classmethod From 1ef3d9b9c118bfd598abdf058b848a8843028012 Mon Sep 17 00:00:00 2001 From: Brian Cantoni Date: Tue, 2 Aug 2022 18:26:45 -0700 Subject: [PATCH 2/2] Fix style --- samples/preserve-namespaces/preserve-namespaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/preserve-namespaces/preserve-namespaces.py b/samples/preserve-namespaces/preserve-namespaces.py index 13642a1..0ecd424 100644 --- a/samples/preserve-namespaces/preserve-namespaces.py +++ b/samples/preserve-namespaces/preserve-namespaces.py @@ -16,7 +16,7 @@ def assertContainsUserNamespace(filename): lineCount += 1 found = doc_beginning_excerpt.rfind("xmlns:user=") print(doc_beginning_excerpt[found:found+10]) - assert(found >= 0) + assert (found >= 0) ############################################################