os.unlink -> os.remove
The functions do the same, but remove sounds better.
This commit is contained in:
parent
f23a28079c
commit
9a4655443f
@ -57,7 +57,7 @@ class ExternalEditor(QObject):
|
|||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
if self._proc.exit_status() != QProcess.CrashExit:
|
if self._proc.exit_status() != QProcess.CrashExit:
|
||||||
os.unlink(self._file.name)
|
os.remove(self._file.name)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
# NOTE: Do not replace this with "raise CommandError" as it's
|
# NOTE: Do not replace this with "raise CommandError" as it's
|
||||||
# executed async.
|
# executed async.
|
||||||
|
Loading…
Reference in New Issue
Block a user