MCPcopy Index your code
hub / github.com/RustPython/RustPython / open

Method open

Lib/webbrowser.py:182–193  ·  view source on GitHub ↗
(self, url, new=0, autoraise=True)

Source from the content-addressed store, hash-verified

180 self.basename = os.path.basename(self.name)
181
182 def open(self, url, new=0, autoraise=True):
183 sys.audit("webbrowser.open", url)
184 cmdline = [self.name] + [arg.replace("%s", url)
185 for arg in self.args]
186 try:
187 if sys.platform[:3] == 'win':
188 p = subprocess.Popen(cmdline)
189 else:
190 p = subprocess.Popen(cmdline, close_fds=True)
191 return not p.wait()
192 except OSError:
193 return False
194
195
196class BackgroundBrowser(GenericBrowser):

Callers

nothing calls this directly

Calls 2

waitMethod · 0.95
replaceMethod · 0.45

Tested by

no test coverage detected