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()