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

Skip to content

Commit 0eee52a

Browse files
committed
Fixes Python 3.3 Travis broken build
1 parent e90846b commit 0eee52a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,22 +3892,21 @@ def _thread(regex):
38923892

38933893
return retVal
38943894

3895-
def normalizeUnicode(value):
3895+
def normalizeUnicode(value, charset=string.printable[:string.printable.find(' ') + 1]):
38963896
"""
38973897
Does an ASCII normalization of unicode strings
38983898
38993899
# Reference: http://www.peterbe.com/plog/unicode-to-ascii
39003900
39013901
>>> normalizeUnicode(u'\u0161u\u0107uraj') == u'sucuraj'
39023902
True
3903-
>>> normalizeUnicode(getUnicode(codecs.decode("666f6f00626172", "hex"))) == u'foobar'
3903+
>>> normalizeUnicode(getUnicode(decodeHex("666f6f00626172"))) == u'foobar'
39043904
True
39053905
"""
39063906

39073907
retVal = value
39083908

39093909
if isinstance(value, six.text_type):
3910-
charset = string.printable[:string.printable.find(' ') + 1]
39113910
retVal = unicodedata.normalize("NFKD", value)
39123911
retVal = "".join(_ for _ in retVal if _ in charset)
39133912

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.98"
21+
VERSION = "1.3.5.99"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
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)