summaryrefslogtreecommitdiff
path: root/lib/gui/electron.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gui/electron.py')
-rw-r--r--lib/gui/electron.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/electron.py b/lib/gui/electron.py
index 83486f78..ef215fb5 100644
--- a/lib/gui/electron.py
+++ b/lib/gui/electron.py
@@ -27,5 +27,5 @@ def open_url(url):
cwd = get_bundled_dir("electron")
# Any output on stdout will crash inkscape.
- null = open(os.devnull, 'w')
- return subprocess.Popen(command, cwd=cwd, stdout=null)
+ with open(os.devnull, 'w') as null:
+ return subprocess.Popen(command, cwd=cwd, stdout=null)