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

Method __init__

Lib/webbrowser.py:172–180  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

170 and without remote functionality."""
171
172 def __init__(self, name):
173 if isinstance(name, str):
174 self.name = name
175 self.args = ["%s"]
176 else:
177 # name should be a list with arguments
178 self.name = name[0]
179 self.args = name[1:]
180 self.basename = os.path.basename(self.name)
181
182 def open(self, url, new=0, autoraise=True):
183 sys.audit("webbrowser.open", url)

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
basenameMethod · 0.80

Tested by

no test coverage detected