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

Skip to content

Commit 33ea811

Browse files
committed
Removing some unused stuff (mainly imports)
1 parent a7cab63 commit 33ea811

5 files changed

Lines changed: 0 additions & 23 deletions

File tree

lib/core/convert.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
try:
9-
import hashlib
10-
except:
11-
import md5
12-
import sha
13-
148
import json
159
import pickle
1610
import sys
17-
import struct
1811

1912
from lib.core.settings import IS_WIN
2013
from lib.core.settings import UNICODE_ENCODING

lib/core/exception.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class SqlmapSilentQuitException(SqlmapBaseException):
4444
class SqlmapUserQuitException(SqlmapBaseException):
4545
pass
4646

47-
class SqlmapRegExprException(SqlmapBaseException):
48-
pass
49-
5047
class SqlmapSyntaxException(SqlmapBaseException):
5148
pass
5249

lib/core/option.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
from lib.core.settings import ORACLE_ALIASES
112112
from lib.core.settings import PARAMETER_SPLITTING_REGEX
113113
from lib.core.settings import PGSQL_ALIASES
114-
from lib.core.settings import PYVERSION
115114
from lib.core.settings import SITE
116115
from lib.core.settings import SQLITE_ALIASES
117116
from lib.core.settings import SUPPORTED_DBMS

lib/core/subprocessng.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import sys
1212
import time
1313

14-
from lib.core.common import dataToStdout
1514
from lib.core.settings import IS_WIN
1615

1716
if IS_WIN:

lib/utils/api.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,22 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import json
9-
import logging
108
import os
119
import shutil
12-
import sys
1310
import tempfile
14-
import types
1511

1612
from subprocess import PIPE
1713

18-
from lib.controller.controller import start
1914
from lib.core.common import unArrayizeValue
2015
from lib.core.convert import base64pickle
2116
from lib.core.convert import base64unpickle
2217
from lib.core.convert import hexencode
2318
from lib.core.convert import jsonize
24-
from lib.core.convert import stdoutencode
2519
from lib.core.data import paths
26-
from lib.core.data import kb
2720
from lib.core.data import logger
2821
from lib.core.datatype import AttribDict
2922
from lib.core.defaults import _defaults
30-
from lib.core.exception import SqlmapMissingDependence
3123
from lib.core.optiondict import optDict
32-
from lib.core.option import init
33-
from lib.core.settings import UNICODE_ENCODING
3424
from lib.core.subprocessng import Popen as execute
3525
from lib.core.subprocessng import send_all
3626
from lib.core.subprocessng import recv_some
@@ -43,7 +33,6 @@
4333
from thirdparty.bottle.bottle import response
4434
from thirdparty.bottle.bottle import run
4535
from thirdparty.bottle.bottle import static_file
46-
from thirdparty.bottle.bottle import template
4736

4837
RESTAPI_SERVER_HOST = "127.0.0.1"
4938
RESTAPI_SERVER_PORT = 8775

0 commit comments

Comments
 (0)