From 06b32e7154a93c84497daef00e6dae9d0203332d Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 20 Jan 2021 21:39:49 -0500 Subject: [PATCH] fix spacing issues --- bootsync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootsync.py b/bootsync.py index 4b0d2ee..60d8769 100755 --- a/bootsync.py +++ b/bootsync.py @@ -52,7 +52,7 @@ class BootSync(object): # self.logger.error('{0} is invalid XML'.format(self.cfgfile)) raise ValueError(('{0} does not seem to be valid XML. ' 'See sample.config.xml for an example configuration.').format(self.cfgfile)) - self.ns = self.cfg.nsmap.get(None, 'http://git.square-r00t.net/OpTools/tree/sys/BootSync/') + self.ns = self.cfg.nsmap.get(None, 'http://git.square-r00t.net/BootSync/') self.ns = '{{{0}}}'.format(self.ns) if validate: if not self.schema: @@ -60,7 +60,7 @@ class BootSync(object): xsi = self.cfg.nsmap.get('xsi', 'http://www.w3.org/2001/XMLSchema-instance') schemaLocation = '{{{0}}}schemaLocation'.format(xsi) schemaURL = self.cfg.attrib.get(schemaLocation, - ('http://git.square-r00t.net/OpTools/plain/sys/BootSync/bootsync.xsd')) + ('https://git.square-r00t.net/BootSync/plain/bootsync.xsd')) with urlopen(schemaURL) as url: self.schema = url.read() self.schema = etree.XMLSchema(etree.XML(self.schema)) @@ -233,7 +233,7 @@ class BootSync(object): line = re.sub(r'(?', line) f.write('{0}\n'.format(line)) return()