Skip to content

Commit

Permalink
clean the code (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan authored Jun 20, 2022
1 parent 6298df1 commit 919299d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nxsconfigserver/XMLConfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,8 @@ def createConfiguration(self, names):
else:
reparsed = et.fromstring(
cnfMerged, parser=XMLParser(collect_ids=False))
xmls = "<?xml version='1.0' encoding='utf8'?>" + \
_tostr(etree.tostring(reparsed, encoding='unicode',
method='xml', pretty_print=True))
xmls = _tostr(etree.tostring(reparsed, encoding='unicode',
method='xml', pretty_print=True))
if xmls.startswith("<?xml"):
self.xmlstring = xmls
else:
Expand Down

0 comments on commit 919299d

Please sign in to comment.