1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-15 08:40:34 +03:00

dashboard: Convert open(pathlib) to pathlib.open()

This commit is contained in:
Athanasius 2021-04-07 18:15:47 +01:00
parent 04506899cc
commit 4d9e8e3f30

View File

@ -177,7 +177,7 @@ class Dashboard(FileSystemEventHandler):
return
try:
with open(pathlib.Path(self.currentdir) / 'Status.json', 'rb') as h:
with (pathlib.Path(self.currentdir) / 'Status.json').open('rb') as h:
data = h.read().strip()
if data: # Can be empty if polling while the file is being re-written