diff options
Diffstat (limited to 'plip/exchange')
-rw-r--r-- | plip/exchange/report.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plip/exchange/report.py b/plip/exchange/report.py index a559bf8..20f281e 100644 --- a/plip/exchange/report.py +++ b/plip/exchange/report.py @@ -97,9 +97,7 @@ class StructureReport: xml_declaration=True) else: output = et.tostring(self.xmlreport, pretty_print=True) - if config.RAWSTRING: - output = repr(output) - print(output) + print(output.decode('utf8')) def write_txt(self, as_string=False): """Write the TXT report""" @@ -108,8 +106,6 @@ class StructureReport: [f.write(textline + '\n') for textline in self.txtreport] else: output = '\n'.join(self.txtreport) - if config.RAWSTRING: - output = repr(output) print(output) |