mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixing some pyflakes naggings
This commit is contained in:
parent
69ba213db9
commit
333e3e48e5
4 changed files with 14 additions and 7 deletions
|
|
@ -70,7 +70,8 @@ def dirtyPatches():
|
|||
|
||||
# add support for inet_pton() on Windows OS
|
||||
if IS_WIN:
|
||||
from thirdparty.wininetpton import win_inet_pton
|
||||
from thirdparty.wininetpton.win_inet_pton import inject_into_socket
|
||||
inject_into_socket()
|
||||
|
||||
# Reference: https://github.com/nodejs/node/issues/12786#issuecomment-298652440
|
||||
codecs.register(lambda name: codecs.lookup("utf-8") if name == "cp65001" else None)
|
||||
|
|
|
|||
|
|
@ -7,15 +7,21 @@ See the file 'LICENSE' for copying permission
|
|||
|
||||
_readline = None
|
||||
try:
|
||||
from readline import *
|
||||
import readline as _readline
|
||||
except:
|
||||
try:
|
||||
from pyreadline import *
|
||||
import pyreadline as _readline
|
||||
except:
|
||||
pass
|
||||
|
||||
if _readline:
|
||||
_symbols = getattr(_readline, "__all__", None)
|
||||
if _symbols is None:
|
||||
_symbols = (name for name in dir(_readline) if not name.startswith("_"))
|
||||
|
||||
for _symbol in _symbols:
|
||||
globals()[_symbol] = getattr(_readline, _symbol)
|
||||
|
||||
from lib.core.data import logger
|
||||
from lib.core.settings import IS_WIN
|
||||
from lib.core.settings import PLATFORM
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.6.169"
|
||||
VERSION = "1.10.6.170"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue