Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2dbd026

Browse files
committed
Minor update
1 parent b5c82c4 commit 2dbd026

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

lib/core/common.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@
3232
import threading
3333
import time
3434
import types
35-
import urllib
3635
import unicodedata
3736

38-
from ConfigParser import DEFAULTSECT
39-
from ConfigParser import RawConfigParser
4037
from difflib import SequenceMatcher
4138
from math import sqrt
4239
from optparse import OptionValueError
@@ -176,10 +173,11 @@
176173
from thirdparty.colorama.initialise import init as coloramainit
177174
from thirdparty.magic import magic
178175
from thirdparty.odict import OrderedDict
176+
from thirdparty.six.moves import configparser as _configparser
179177
from thirdparty.six.moves import urllib as _urllib
180178
from thirdparty.termcolor.termcolor import colored
181179

182-
class UnicodeRawConfigParser(RawConfigParser):
180+
class UnicodeRawConfigParser(_configparser.RawConfigParser):
183181
"""
184182
RawConfigParser with unicode writing support
185183
"""
@@ -190,7 +188,7 @@ def write(self, fp):
190188
"""
191189

192190
if self._defaults:
193-
fp.write("[%s]\n" % DEFAULTSECT)
191+
fp.write("[%s]\n" % _configparser.DEFAULTSECT)
194192

195193
for (key, value) in self._defaults.items():
196194
fp.write("%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING).replace('\n', '\n\t')))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.3.55"
20+
VERSION = "1.3.3.56"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)