Skip to content

Commit 073d6ed

Browse files
committed
Just write to stdout
1 parent 95e6fe2 commit 073d6ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bin/jsonschema_suite

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def main(arguments):
158158
if arguments.randomize:
159159
random.shuffle(selected_cases)
160160

161-
json.dump(selected_cases, arguments.out, indent=4)
161+
json.dump(selected_cases, sys.stdout, indent=4, sort_keys=True)
162162
elif arguments.command == "remotes":
163163
json.dump(REMOTES, sys.stdout, indent=4, sort_keys=True)
164164
elif arguments.command == "dump_remotes":
@@ -221,9 +221,6 @@ flatten.add_argument(
221221
flatten.add_argument(
222222
"version", help="The directory containing the version to output",
223223
)
224-
flatten.add_argument(
225-
"out", help="The output file to write to", type=argparse.FileType("w"),
226-
)
227224

228225
remotes = subparsers.add_parser(
229226
"remotes",

0 commit comments

Comments
 (0)