Merge "Use open instead of file for python3"

This commit is contained in:
Jenkins 2017-07-30 14:45:33 +00:00 committed by Gerrit Code Review
commit c92a915cf8
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class BackgroundBrowser(webbrowser.GenericBrowser):
def open(self, url, new=0, autoraise=True):
cmdline = [self.name] + [arg.replace("%s", url)
for arg in self.args]
inout = file(os.devnull, "r+")
inout = open(os.devnull, "r+")
try:
if sys.platform[:3] == 'win':
p = subprocess.Popen(cmdline)