From 3645a0f2790f15edab06bd39b4dbf101c75ce352 Mon Sep 17 00:00:00 2001
From: Mattia Mancini <mancini@astron.nl>
Date: Mon, 24 Jun 2019 13:21:47 +0000
Subject: [PATCH] SW-720: typo

---
 SAS/SpecificationServices/lib/validation_service.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SAS/SpecificationServices/lib/validation_service.py b/SAS/SpecificationServices/lib/validation_service.py
index c536eebc2bf..41846b296e1 100644
--- a/SAS/SpecificationServices/lib/validation_service.py
+++ b/SAS/SpecificationServices/lib/validation_service.py
@@ -51,7 +51,7 @@ def _validateXSD(xml, xsdpath):
 
         # Try to parse the XML
         try:
-            doc = parse_xml_string_or_bytestring(BytesIO(xml.encode('utf8')))
+            doc = parse_xml_string_or_bytestring(xml)
         except etree.LxmlError as err:
             logger.error(err)
             return {"valid": False, "error": "XML could not be parsed: %s" % (err,)}
-- 
GitLab