Commit 3516034e authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

apple: Remove --format=json from plist conversion scripts.

We don't seem to use it, and it makes it easier to implement these
scripts without subprocess calls using just plistlib once on Py3.

Bug: 1147069
Change-Id: Iac7464b7767b2c221f3a63bf79708aa211147249
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2554781Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#830519}
parent 62e0c70a
...@@ -278,7 +278,7 @@ def Main(argv): ...@@ -278,7 +278,7 @@ def Main(argv):
'like key=value (can be passed multiple time to configure ' 'like key=value (can be passed multiple time to configure '
'more than one override)') 'more than one override)')
parser.add_option('--format', parser.add_option('--format',
choices=('binary1', 'xml1', 'json'), choices=('binary1', 'xml1'),
default='xml1', default='xml1',
help='Format to use when writing property list ' help='Format to use when writing property list '
'(default: %(default)s)') '(default: %(default)s)')
......
...@@ -178,7 +178,7 @@ class MergeAction(Action): ...@@ -178,7 +178,7 @@ class MergeAction(Action):
'-o', '--output', required=True, '-o', '--output', required=True,
help='path to the output plist file') help='path to the output plist file')
parser.add_argument( parser.add_argument(
'-f', '--format', required=True, choices=('xml1', 'binary1', 'json'), '-f', '--format', required=True, choices=('xml1', 'binary1'),
help='format of the plist file to generate') help='format of the plist file to generate')
parser.add_argument( parser.add_argument(
'-x', '-x',
...@@ -214,7 +214,7 @@ class SubstituteAction(Action): ...@@ -214,7 +214,7 @@ class SubstituteAction(Action):
'-s', '--substitution', action='append', default=[], '-s', '--substitution', action='append', default=[],
help='substitution rule in the format key=value') help='substitution rule in the format key=value')
parser.add_argument( parser.add_argument(
'-f', '--format', required=True, choices=('xml1', 'binary1', 'json'), '-f', '--format', required=True, choices=('xml1', 'binary1'),
help='format of the plist file to generate') help='format of the plist file to generate')
parser.add_argument( parser.add_argument(
'-x', '-x',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment