mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-01 00:40:02 +00:00
Fixing some pyflakes naggings
This commit is contained in:
parent
69ba213db9
commit
333e3e48e5
4 changed files with 14 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue