Skip to content

Commit

Permalink
simply name fetcher parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotan committed Jan 9, 2025
1 parent db8c705 commit a15dc00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nxswriter/TangoDataWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,7 @@ def __setXML(self, xmlset):
:type xmlset: :obj:`str`
"""
self.__fetcher = FetchNameHandler(streams=self._streams)
if sys.version_info > (3,):
sax.parseString(bytes(xmlset, 'utf-8'), self.__fetcher)
else:
sax.parseString(xmlset, self.__fetcher)
sax.parseString(xmlset, self.__fetcher)
self.__xmlsettings = xmlset

def __delXML(self):
Expand Down

0 comments on commit a15dc00

Please sign in to comment.