diff options
author | Daniel Schadt <kingdread@gmx.de> | 2016-08-07 00:11:58 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2016-08-07 11:21:33 +0200 |
commit | 363d4f4654278408e6671f84965f6d5a77142635 (patch) | |
tree | 2e43740b2f2ca9e05cd9027eb8a5b06dde00760e | |
parent | 34e184ebf5f18d1004ccad9f7667ae4415402f72 (diff) | |
download | qutebrowser-363d4f4654278408e6671f84965f6d5a77142635.tar.gz qutebrowser-363d4f4654278408e6671f84965f6d5a77142635.zip |
os.unlink -> os.remove
The functions do the same, but remove sounds better.
-rw-r--r-- | qutebrowser/misc/editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |