From c3620b932bde828de59bc69ea2adf9cb1bfd45f6 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 11 Sep 2019 16:22:39 +0100 Subject: [PATCH] Removes un-necessary encode('utf-8') --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index 743381e1..18cbe801 100644 --- a/monitor.py +++ b/monitor.py @@ -732,7 +732,7 @@ class EDLogs(FileSystemEventHandler): # Export ship loadout as a Loadout event def export_ship(self, filename=None): - string = json.dumps(self.ship(False), ensure_ascii=False, indent=2, separators=(',', ': ')).encode('utf-8') # pretty print + string = json.dumps(self.ship(False), ensure_ascii=False, indent=2, separators=(',', ': ')) # pretty print if filename: with open(filename, 'wt') as h: