Removes un-necessary encode('utf-8')

This commit is contained in:
Athanasius committed 2019-09-26 11:40:41 +01:00
1 parent 1a518e366a
commit c3620b932b
1 file changed
+1 -1
+1 -1
View File
@@ -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: