summaryrefslogtreecommitdiff
path: root/patternutils/commands/pjson.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--patternutils/commands/pjson.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/patternutils/commands/pjson.py b/patternutils/commands/pjson.py
index cbc87c9..de300cb 100644
--- a/patternutils/commands/pjson.py
+++ b/patternutils/commands/pjson.py
@@ -1,4 +1,3 @@
-import json
import re
from collections.abc import Iterable
from typing import Any, Pattern, TextIO
@@ -76,7 +75,6 @@ def pjson(
human_readable: bool,
verbose: bool,
) -> None:
-
try:
regex_pattern_c = re.compile(regex_pattern)
except re.error as e:
@@ -97,7 +95,6 @@ def pjson(
has_no_match = False
has_empty_data = False
for line in data:
-
if not line:
has_empty_data = True
click.secho(f"{line} has no input.", fg="red", err=True)