Skip to content

Commit 94c00fd

Browse files
committed
Trivial refactoring
1 parent 956b0eb commit 94c00fd

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

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.162"
21+
VERSION = "1.3.5.163"
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/unescaper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""
77

88
from lib.core.common import Backend
9-
from lib.core.data import conf
109
from lib.core.datatype import AttribDict
1110
from lib.core.settings import EXCLUDE_UNESCAPE
1211

lib/techniques/blind/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
279279
return None
280280

281281
maxChar = maxValue = charTbl[-1]
282-
minChar = minValue = charTbl[0]
282+
minValue = charTbl[0]
283283
firstCheck = False
284284
lastCheck = False
285285
unexpectedCode = False

lib/utils/getch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ class _GetchMacCarbon(object):
5858
def __init__(self):
5959
import Carbon
6060

61-
_ = Carbon.Evt # see if it has this (in Unix, it doesn't)
61+
getattr(Carbon, "Evt") # see if it has this (in Unix, it doesn't)
6262

6363
def __call__(self):
64+
import Carbon
65+
6466
if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask
6567
return ''
6668
else:

lib/utils/xrange.py

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

88
import numbers
99

10-
from lib.core.compat import cmp
11-
1210
class xrange(object):
1311
"""
1412
Advanced (re)implementation of xrange (supports slice/copy/etc.)

0 commit comments

Comments
 (0)