We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de9ec77 commit 6ddf67fCopy full SHA for 6ddf67f
1 file changed
Lib/webbrowser.py
@@ -1,7 +1,8 @@
1
"""Interfaces for launching and remotely controlling web browsers."""
2
3
+import builtins # because we override open
4
import os
-import plistlib
5
+lazy import plistlib
6
import shlex
7
import shutil
8
import sys
@@ -629,7 +630,6 @@ def _macos_default_browser_bundle_id():
629
630
LaunchServices plist is not written until the user explicitly
631
changes their default browser.
632
"""
- import builtins
633
plist = os.path.expanduser(
634
'~/Library/Preferences/com.apple.LaunchServices/'
635
'com.apple.launchservices.secure.plist'
0 commit comments