From 9a4655443f62f3e8041a9623f74fdb888b25e539 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 7 Aug 2016 00:11:58 +0200 Subject: [PATCH] os.unlink -> os.remove The functions do the same, but remove sounds better. --- qutebrowser/misc/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/misc/editor.py b/qutebrowser/misc/editor.py index fb4cd8676..c72841f30 100644 --- a/qutebrowser/misc/editor.py +++ b/qutebrowser/misc/editor.py @@ -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.