mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Doing some more style updating (capitalization of exception classes; using _ is enough for private members - __ is used in Python specific methods)
This commit is contained in:
parent
003d21e962
commit
974407396e
102 changed files with 1115 additions and 1091 deletions
|
|
@ -8,7 +8,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
import os
|
||||
import zipfile
|
||||
|
||||
from lib.core.exception import sqlmapDataException
|
||||
from lib.core.exception import SqlmapDataException
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
|
||||
class Wordlist(object):
|
||||
|
|
@ -42,7 +42,7 @@ class Wordlist(object):
|
|||
_ = zipfile.ZipFile(current, 'r')
|
||||
if len(_.namelist()) == 0:
|
||||
errMsg = "no file(s) inside '%s'" % current
|
||||
raise sqlmapDataException, errMsg
|
||||
raise SqlmapDataException, errMsg
|
||||
self.fp = _.open(_.namelist()[0])
|
||||
else:
|
||||
self.fp = open(current, 'r')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue