From 017da0cd9ae38b76377f959f05f5913bb8b296f4 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 21 Jun 2021 16:44:54 +0200 Subject: Tests: fix dependencies and string evaluation --- ishtar_common/utils_secretary.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ishtar_common/utils_secretary.py') diff --git a/ishtar_common/utils_secretary.py b/ishtar_common/utils_secretary.py index 9100dac15..062b43913 100644 --- a/ishtar_common/utils_secretary.py +++ b/ishtar_common/utils_secretary.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - from secretary import Renderer, parseString from xml.parsers.expat import ExpatError, ErrorString @@ -142,7 +141,7 @@ class IshtarSecretaryRenderer(Renderer): return final_xml except ExpatError as e: - if not "result" in locals(): + if "result" not in locals(): result = xml_source ### changes try: -- cgit v1.2.3