From: Shivani Bhardwaj Date: Wed, 26 Jul 2023 09:57:30 +0000 (+0530) Subject: run.py: don't decode already decoded str X-Git-Tag: suricata-6.0.14~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3d53da77bcfa82793f46989d389fdedb8780ac5;p=thirdparty%2Fsuricata-verify.git run.py: don't decode already decoded str --- diff --git a/run.py b/run.py index 6c69623bc..ba06e13a8 100755 --- 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]")