mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
all instance attributes should be defined in constructor
This commit is contained in:
parent
3effaee2a1
commit
eda9a3da67
|
@ -71,6 +71,8 @@ class Database(object):
|
|||
|
||||
def __init__(self, database=None):
|
||||
self.database = self.filepath if database is None else database
|
||||
self.connection = None
|
||||
self.cursor = None
|
||||
|
||||
def connect(self, who="server"):
|
||||
self.connection = sqlite3.connect(self.database, timeout=3, isolation_level=None)
|
||||
|
|
Loading…
Reference in New Issue
Block a user