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

Skip to content

Commit 19e0841

Browse files
committed
Should fix broken Travis
1 parent 6825bf8 commit 19e0841

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

lib/core/patch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
from thirdparty import six
3737
from thirdparty.six.moves import http_client as _http_client
3838

39+
_rand = 0
40+
3941
def dirtyPatches():
4042
"""
4143
Place for "dirty" Python related patches

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.4.2.19"
21+
VERSION = "1.4.2.20"
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)

lib/core/testing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8-
from __future__ import division
9-
108
import doctest
119
import logging
1210
import os
@@ -35,8 +33,6 @@
3533
from lib.core.data import queries
3634
from lib.core.patch import unisonRandom
3735

38-
_rand = 0
39-
4036
def vulnTest():
4137
"""
4238
Runs the testing against 'vulnserver'

lib/request/basic.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Copyright (c) 2006-2020 sqlmap developers (http://sqlmap.org/)
55
See the file 'LICENSE' for copying permission
66
"""
7-
from __future__ import print_function
87

98
import codecs
109
import gzip
@@ -239,12 +238,8 @@ def checkCharEncoding(encoding, warn=True):
239238

240239
if encoding:
241240
try:
242-
_ = getBytes(randomStr())
243-
print(repr(_))
244-
print(encoding)
245-
six.text_type(_, encoding)
246-
except Exception as ex:
247-
print(getSafeExString(ex))
241+
six.text_type(getBytes(randomStr()), encoding)
242+
except:
248243
if warn:
249244
warnMsg = "invalid web page charset '%s'" % encoding
250245
singleTimeLogMessage(warnMsg, logging.WARN, encoding)

0 commit comments

Comments
 (0)