You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2018/05/20 13:51:23 UTC
[incubator-ponymail] branch master updated: pylint: input is a
built-in
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new 041f0ae pylint: input is a built-in
041f0ae is described below
commit 041f0ae7c5aa811f8e0a9c3757ac5764793cde5c
Author: Sebb <se...@apache.org>
AuthorDate: Sun May 20 14:51:22 2018 +0100
pylint: input is a built-in
---
tools/json_tidy.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/json_tidy.py b/tools/json_tidy.py
index 3c92b08..241dd11 100755
--- a/tools/json_tidy.py
+++ b/tools/json_tidy.py
@@ -30,12 +30,12 @@ parser.add_argument("--drop", help="Comma-separated list of top-level keys to dr
args = parser.parse_args()
-input = json.loads(sys.stdin.read())
+inp = json.loads(sys.stdin.read())
for key in args.drop.split(','):
try:
- del input[key]
+ del inp[key]
except KeyError:
pass
-json.dump(input, sys.stdout, indent=args.indent, sort_keys=True)
+json.dump(inp, sys.stdout, indent=args.indent, sort_keys=True)
print("") # EOL at EOF
--
To stop receiving notification emails like this one, please contact
sebb@apache.org.