summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--patternutils/commands/tmv.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/patternutils/commands/tmv.py b/patternutils/commands/tmv.py
index 660293c..25932bc 100644
--- a/patternutils/commands/tmv.py
+++ b/patternutils/commands/tmv.py
@@ -70,9 +70,7 @@ def tmv(
if not stream:
data = json.load(read_from) # type: ignore
else:
- data = []
- for line in read_from:
- data.append(json.loads(line))
+ data = [json.loads(line) for line in read_from]
except json.JSONDecodeError:
click.secho('JSON not valid!', fg='red', err=True)
raise SystemExit