mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
Use FoundationPlist to read our local prefs
This commit is contained in:
@@ -380,7 +380,7 @@ def print_err_utf8(text):
|
||||
def pref(prefname):
|
||||
"""Returns a preference for prefname"""
|
||||
try:
|
||||
_prefs = plistlib.readPlist(PREFSPATH)
|
||||
_prefs = FoundationPlist.readPlist(PREFSPATH)
|
||||
except Exception:
|
||||
return None
|
||||
if prefname in _prefs:
|
||||
|
||||
Reference in New Issue
Block a user