(self, url, new=0, autoraise=True)
| 597 | if sys.platform[:3] == "win": |
| 598 | class WindowsDefault(BaseBrowser): |
| 599 | def open(self, url, new=0, autoraise=True): |
| 600 | sys.audit("webbrowser.open", url) |
| 601 | self._check_url(url) |
| 602 | try: |
| 603 | os.startfile(url) |
| 604 | except OSError: |
| 605 | # [Error 22] No application is associated with the specified |
| 606 | # file for this operation: '<URL>' |
| 607 | return False |
| 608 | else: |
| 609 | return True |
| 610 | |
| 611 | # |
| 612 | # Platform support for macOS |
nothing calls this directly
no test coverage detected