1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Remove another open 'U' flag.

This commit is contained in:
Athanasius 2021-03-29 11:19:48 +01:00
parent 69bc90f5b4
commit be740d0bcd

View File

@ -1132,7 +1132,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
except UnicodeError:
logger.exception("UnicodeError reading old ship loadout with utf-8 encoding, trying without...")
try:
with open(join(config.get('outdir'), oldfiles[-1]), 'rU') as h: # type: ignore
with open(join(config.get('outdir'), oldfiles[-1]), 'r') as h: # type: ignore
if h.read() == string:
return # same as last time - don't write