Removing trailing blank lines

This commit is contained in:
Miroslav Stampar 2014-08-20 21:07:19 +02:00
parent e0216771ed
commit 5d10bae31f
7 changed files with 9 additions and 9 deletions

View File

@ -1373,7 +1373,7 @@ def _setHTTPUserAgent():
infoMsg = "fetched random HTTP User-Agent header from " infoMsg = "fetched random HTTP User-Agent header from "
infoMsg += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent) infoMsg += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent)
logger.info(infoMsg) logger.info(infoMsg)
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent)) conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
def _setHTTPReferer(): def _setHTTPReferer():

View File

@ -277,7 +277,7 @@ def unionUse(expression, unpack=True, dump=False):
with kb.locks.value: with kb.locks.value:
if all(map(lambda _: _ in output, (kb.chars.start, kb.chars.stop))): if all(map(lambda _: _ in output, (kb.chars.start, kb.chars.stop))):
items = parseUnionPage(output) items = parseUnionPage(output)
if threadData.shared.showEta: if threadData.shared.showEta:
threadData.shared.progress.progress(time.time() - valueStart, threadData.shared.counter) threadData.shared.progress.progress(time.time() - valueStart, threadData.shared.counter)
if isListLike(items): if isListLike(items):

View File

@ -28,7 +28,7 @@ class xrange(object):
self._slice = slice(*args) self._slice = slice(*args)
if self._slice.stop is None: if self._slice.stop is None:
raise TypeError("xrange stop must not be None") raise TypeError("xrange stop must not be None")
@property @property
def start(self): def start(self):
if self._slice.start is not None: if self._slice.start is not None:
@ -75,10 +75,10 @@ class xrange(object):
fixed_index = index + self._len() fixed_index = index + self._len()
else: else:
fixed_index = index fixed_index = index
if not 0 <= fixed_index < self._len(): if not 0 <= fixed_index < self._len():
raise IndexError("Index %d out of %r" % (index, self)) raise IndexError("Index %d out of %r" % (index, self))
return self._index(fixed_index) return self._index(fixed_index)
else: else:
raise TypeError("xrange indices must be slices or integers") raise TypeError("xrange indices must be slices or integers")

View File

@ -12,7 +12,7 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration
class Enumeration(GenericEnumeration): class Enumeration(GenericEnumeration):
def __init__(self): def __init__(self):
GenericEnumeration.__init__(self) GenericEnumeration.__init__(self)
def getPasswordHashes(self): def getPasswordHashes(self):
warnMsg = "on DB2 it is not possible to list password hashes" warnMsg = "on DB2 it is not possible to list password hashes"
logger.warn(warnMsg) logger.warn(warnMsg)

View File

@ -77,7 +77,7 @@ class Fingerprint(GenericFingerprint):
version 1.8.0.4 Added org.hsqldbdb.Library function, getDatabaseFullProductVersion to return the version 1.8.0.4 Added org.hsqldbdb.Library function, getDatabaseFullProductVersion to return the
full version string, including the 4th digit (e.g 1.8.0.4). full version string, including the 4th digit (e.g 1.8.0.4).
version 1.7.2 CASE statements added and INFORMATION_SCHEMA version 1.7.2 CASE statements added and INFORMATION_SCHEMA
""" """
if not conf.extensiveFp and (Backend.isDbmsWithin(HSQLDB_ALIASES) \ if not conf.extensiveFp and (Backend.isDbmsWithin(HSQLDB_ALIASES) \

View File

@ -54,6 +54,6 @@ def tamper(payload, **kwargs):
if match: if match:
_ = "%s %s BETWEEN %s AND %s" % (match.group(2), match.group(4), match.group(5), match.group(5)) _ = "%s %s BETWEEN %s AND %s" % (match.group(2), match.group(4), match.group(5), match.group(5))
retVal = retVal.replace(match.group(0), _) retVal = retVal.replace(match.group(0), _)
return retVal return retVal

View File

@ -73,7 +73,7 @@ class WinTerm(object):
position.X += 1 position.X += 1
position.Y += 1 position.Y += 1
return position return position
def set_cursor_position(self, position=None, on_stderr=False): def set_cursor_position(self, position=None, on_stderr=False):
if position is None: if position is None:
#I'm not currently tracking the position, so there is no default. #I'm not currently tracking the position, so there is no default.