mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
all instance attributes should be defined in constructor
This commit is contained in:
parent
3effaee2a1
commit
eda9a3da67
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue