From 94950857de1026002509b424d250c5784943d714 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 7 Nov 2016 20:57:42 +0000 Subject: [PATCH] Learn how pop works --- bin/json_format | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/json_format b/bin/json_format index 23934b5..0a0f440 100755 --- a/bin/json_format +++ b/bin/json_format @@ -8,9 +8,8 @@ ARGS = sys.argv[1:] if not os.isatty(0): data = sys.stdin.read() else: - with open(ARGS[0]) as f: + with open(ARGS.pop(0)) as f: data = '\n'.join(f.readlines()) - ARGS.pop(0) parsed_data = json.dumps(json.loads(data), indent=2, sort_keys=True)