提交 50f45a68 编写于 作者: L Lukáš Doktor

optional_plugins.html: Use `open` to get file

"file" is not available on python3, let's use "open" to get file
instance.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 79f7aa2d
......@@ -222,7 +222,7 @@ class HTMLResult(Result):
setsid = getattr(os, 'setsid', None)
if not setsid:
setsid = getattr(os, 'setpgrp', None)
inout = file(os.devnull, "r+")
inout = open(os.devnull, "r+")
cmd = ['xdg-open', html_path]
subprocess.Popen(cmd, close_fds=True, stdin=inout,
stdout=inout, stderr=inout,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册