Merge "Use open instead of file for python3"
This commit is contained in:
commit
c92a915cf8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user