Skip to content

Commit a6b6b91

Browse files
committed
Further pleasing pylint gods
1 parent f9fe1dd commit a6b6b91

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# Python code to execute, usually for sys.path manipulation such as
99
# pygtk.require().
10-
init-hook=
10+
init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc()))"
1111

1212
# Add files or directories to the blacklist. They should be base names, not
1313
# paths.
@@ -306,7 +306,7 @@ ignore-mixin-members=yes
306306
# (useful for modules/projects where namespaces are manipulated during runtime
307307
# and thus existing member attributes cannot be deduced by static analysis. It
308308
# supports qualified module names, as well as Unix pattern matching.
309-
ignored-modules=
309+
ignored-modules=thirdparty.six.moves
310310

311311
# List of classes names for which member attributes should not be checked
312312
# (useful for classes with attributes dynamically set). This supports can work

lib/core/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ def parseTargetDirect():
14761476

14771477
if dbmsName in (DBMS.MSSQL, DBMS.SYBASE):
14781478
__import__("_mssql")
1479-
import pymssql
1479+
pymssql = __import__("pymssql")
14801480

14811481
if not hasattr(pymssql, "__version__") or pymssql.__version__ < "1.0.2":
14821482
errMsg = "'%s' third-party library must be " % data[1]
@@ -4316,9 +4316,9 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
43164316
True
43174317
"""
43184318

4319-
class _(six.StringIO):
4319+
class _(six.StringIO, object):
43204320
def __init__(self, content, url):
4321-
six.StringIO.__init__(self, content)
4321+
super(_, self).__init__(content)
43224322
self._url = url
43234323

43244324
def geturl(self):

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.6.3"
21+
VERSION = "1.3.6.4"
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/threads.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ def reset(self):
5050
self.lastComparisonHeaders = None
5151
self.lastComparisonCode = None
5252
self.lastComparisonRatio = None
53-
self.lastErrorPage = None
53+
self.lastErrorPage = tuple()
5454
self.lastHTTPError = None
5555
self.lastRedirectMsg = None
5656
self.lastQueryDuration = 0
5757
self.lastPage = None
5858
self.lastRequestMsg = None
5959
self.lastRequestUID = 0
60-
self.lastRedirectURL = None
60+
self.lastRedirectURL = tuple()
6161
self.random = WichmannHill()
6262
self.resumed = False
6363
self.retriesCount = 0

lib/utils/deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def checkDependencies():
2121
if dbmsName in (DBMS.MSSQL, DBMS.SYBASE):
2222
__import__("_mssql")
2323

24-
import pymssql
24+
pymssql = __import__("pymssql")
2525
if not hasattr(pymssql, "__version__") or pymssql.__version__ < "1.0.2":
2626
warnMsg = "'%s' third-party library must be " % data[1]
2727
warnMsg += "version >= 1.0.2 to work properly. "

0 commit comments

Comments
 (0)