]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
run.py: don't decode already decoded str
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 26 Jul 2023 09:57:30 +0000 (15:27 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 27 Jul 2023 14:24:03 +0000 (19:54 +0530)
run.py

diff --git a/run.py b/run.py
index 6c69623bca72e9cdae0a2958f22275ac5a0256b2..ba06e13a8b2762c0e9afdfb70d681f353b36618f 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1186,7 +1186,7 @@ def main():
                     try:
                         with open(path, "r") as fcontents:
                             try:
-                                buf = fcontents.read().decode()
+                                buf = fcontents.read()
                                 print(buf)
                             except:
                                 print("    - [Not dumping file that won't utf-8 decode]")