From d5fb3a0d8be1307e5ae492492f62b7da02ddd8b1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 8 May 2019 02:32:49 +0200 Subject: [PATCH] Minor update --- extra/shutils/duplicates.py | 2 +- lib/core/common.py | 2 +- lib/core/settings.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/shutils/duplicates.py b/extra/shutils/duplicates.py index c3a1ebd19..7ffe0d444 100755 --- a/extra/shutils/duplicates.py +++ b/extra/shutils/duplicates.py @@ -14,7 +14,7 @@ if __name__ == "__main__": items = list() with open(sys.argv[1], 'r') as f: - for item in f.readlines(): + for item in f: item = item.strip() try: str.encode(item) diff --git a/lib/core/common.py b/lib/core/common.py index 780b8328e..9a2df03f2 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2293,7 +2293,7 @@ def initCommonOutputs(): key = None with openFile(paths.COMMON_OUTPUTS, 'r') as f: - for line in f.readlines(): # xreadlines doesn't return unicode strings when codec.open() is used + for line in f: if line.find('#') != -1: line = line[:line.find('#')] diff --git a/lib/core/settings.py b/lib/core/settings.py index 10e8fa627..231d08e94 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.47" +VERSION = "1.3.5.48" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)