Remove official Python 3.7 support
This commit is contained in:
@@ -170,9 +170,9 @@ def main(sysArgs: list | None = None):
|
||||
# Check Packages and Versions
|
||||
errorData = []
|
||||
errorCode = 0
|
||||
if sys.hexversion < 0x030700f0:
|
||||
if sys.hexversion < 0x030800f0:
|
||||
errorData.append(
|
||||
"At least Python 3.7 is required, found %s" % CONFIG.verPyString
|
||||
"At least Python 3.8 is required, found %s" % CONFIG.verPyString
|
||||
)
|
||||
errorCode |= 0x04
|
||||
if CONFIG.verQtValue < 0x050a00:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user