Skip to content

Commit 4da04d7

Browse files
fanquakeFuzzbawls
authored andcommitted
macdeploy: assume plistlib is available
We already require Python 3.5 or later
1 parent 56ab77a commit 4da04d7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
#
1818

19+
import plistlib
1920
import subprocess, sys, re, os, shutil, stat, os.path, time
2021
from argparse import ArgumentParser
2122
from pathlib import Path
@@ -538,13 +539,6 @@ app_bundle_name = os.path.splitext(os.path.basename(app_bundle))[0]
538539
# ------------------------------------------------
539540

540541
if len(config.fancy) == 1:
541-
if verbose:
542-
print("Fancy: Importing plistlib...")
543-
try:
544-
import plistlib
545-
except ImportError:
546-
sys.stderr.write("Error: Could not import plistlib which is required for fancy disk images.\n")
547-
sys.exit(1)
548542

549543
p = config.fancy[0]
550544
if verbose:

0 commit comments

Comments
 (0)