From 6516ce70701c8fd58694d16bda364324a0ed0940 Mon Sep 17 00:00:00 2001 From: Terminal <32599364+TheSecEng@users.noreply.github.com> Date: Sat, 12 Jun 2021 07:36:41 -0700 Subject: [PATCH] Update PrettyJson.py Remove print statements --- PrettyJson.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/PrettyJson.py b/PrettyJson.py index f4c6c5a..ec834dd 100644 --- a/PrettyJson.py +++ b/PrettyJson.py @@ -88,14 +88,11 @@ def json_dumps(obj, minified: bool = False) -> str: items = [a.strip() for a in content.split(os.linesep)] items = [item[:-1] if item[-1] == "," else item for item in items] replacement = "[" - print(items) for index, item in enumerate(items): if item in ('{', '}'): replacement = replacement + item if item == '}': if index!= len(items)-1: - print(items.index(item)) - print(len(items)-1) replacement = replacement + ',' else: replacement = replacement + item @@ -103,7 +100,6 @@ def json_dumps(obj, minified: bool = False) -> str: if items[items.index(item)+1] != '}': replacement = replacement + ',' replacement = replacement + ']' - print(replacement) if len(replacement) <= settings.get("max_arrays_line_length", 120): output_json = output_json.replace(m, replacement, 1)