From f582ace368175fcbfc079a49178eab8ab88b2b3e Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Mon, 12 Oct 2020 11:12:22 +0200 Subject: [PATCH] fix: bug in database creation process https://github.com/Neo23x0/yarGen/issues/27 --- yarGen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarGen.py b/yarGen.py index 9a4277f..fe9fe25 100644 --- a/yarGen.py +++ b/yarGen.py @@ -7,7 +7,7 @@ # # Florian Roth -__version__ = "0.23.2" +__version__ = "0.23.3" import os import sys @@ -265,7 +265,7 @@ def parse_good_dir(dir, notRecursive=False, onlyRelevantExtensions=True): print("[-] Cannot read file - skipping %s" % filePath) # Extract strings from file - strings = extract_strings(str(fileData)) + strings = extract_strings(fileData) # Append to all strings all_strings.update(strings) @@ -1867,7 +1867,7 @@ def removeNonAsciiDrop(string): def save(object, filename): file = gzip.GzipFile(filename, 'wb') - file.write(json.dumps(object)) + file.write(bytes(json.dumps(object), 'utf-8')) file.close()