Skip to content

Commit 6ddf67f

Browse files
committed
lazy import plistlib
1 parent de9ec77 commit 6ddf67f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/webbrowser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""Interfaces for launching and remotely controlling web browsers."""
22

3+
import builtins # because we override open
34
import os
4-
import plistlib
5+
lazy import plistlib
56
import shlex
67
import shutil
78
import sys
@@ -629,7 +630,6 @@ def _macos_default_browser_bundle_id():
629630
LaunchServices plist is not written until the user explicitly
630631
changes their default browser.
631632
"""
632-
import builtins
633633
plist = os.path.expanduser(
634634
'~/Library/Preferences/com.apple.LaunchServices/'
635635
'com.apple.launchservices.secure.plist'

0 commit comments

Comments
 (0)