Remove official Python 3.7 support

This commit is contained in:
Veronica Berglyd Olsen committed 2023-08-31 19:09:23 +02:00
1 parent ee84c635c5
commit e766fa7dcc
7 files changed
+11 -16

No files matched your search

+2 -6
View File
@@ -268,12 +268,8 @@ class NWDocument:
docTemp = docPath.with_suffix(".tmp")
try:
# ToDo: When Python 3.7 is dropped, these can be changed to
# path.unlink(missing_ok=True)
if docPath.exists():
docPath.unlink()
if docTemp.exists():
docTemp.unlink()
docPath.unlink(missing_ok=True)
docTemp.unlink(missing_ok=True)
except Exception as exc:
self._docError = formatException(exc)
return False