os.unlink -> os.remove

The functions do the same, but remove sounds better.
This commit is contained in:
Daniel Schadt 2016-08-07 00:11:58 +02:00
parent f23a28079c
commit 9a4655443f

View File

@ -57,7 +57,7 @@ class ExternalEditor(QObject):
return
try:
if self._proc.exit_status() != QProcess.CrashExit:
os.unlink(self._file.name)
os.remove(self._file.name)
except OSError as e:
# NOTE: Do not replace this with "raise CommandError" as it's
# executed async.