yes, I am quite paranoid with cosmetics

This commit is contained in:
Bernardo Damele 2010-10-27 10:37:54 +00:00
parent 0efecde248
commit d554ffc0ae
3 changed files with 4 additions and 2 deletions

View File

@ -1505,7 +1505,7 @@ def beep():
"""
if sys.platform == 'linux2':
for dev in ('/dev/audio', '/dev/dsp'):
for dev in ('/dev/audio', '/dev/dsp', '/dev/sound'):
if os.path.exists(dev):
try:
audio = file(dev, 'wb')

View File

@ -16,6 +16,6 @@ class Connector(GenericConnector):
GenericConnector.__init__(self)
def connect(self):
errMsg = "on SAP MaxDB it is not possible to establish an "
errMsg = "on SAP MaxDB it is not possible to establish a "
errMsg += "direct connection"
raise sqlmapUnsupportedFeatureException, errMsg

View File

@ -47,6 +47,7 @@ class Connector(GenericConnector):
except (self.__sqlite.DatabaseError, self.__sqlite.OperationalError), msg:
warnMsg = "unable to connect using SQLite 3 library, trying with SQLite 2"
logger.warning(warnMsg)
try:
try:
import sqlite
@ -54,6 +55,7 @@ class Connector(GenericConnector):
errMsg = "sqlmap requires 'python-sqlite2' third-party library "
errMsg += "in order to directly connect to the database '%s'" % self.db
raise sqlmapMissingDependence, errMsg
self.__sqlite = sqlite
self.connector = self.__sqlite.connect(database=self.db, check_same_thread=False, timeout=conf.timeout)
except (self.__sqlite.DatabaseError, self.__sqlite.OperationalError), msg: