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 += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent)
logger.info(infoMsg)
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
def _setHTTPReferer():

View File

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

View File

@ -28,7 +28,7 @@ class xrange(object):
self._slice = slice(*args)
if self._slice.stop is None:
raise TypeError("xrange stop must not be None")
@property
def start(self):
if self._slice.start is not None:
@ -75,10 +75,10 @@ class xrange(object):
fixed_index = index + self._len()
else:
fixed_index = index
if not 0 <= fixed_index < self._len():
raise IndexError("Index %d out of %r" % (index, self))
return self._index(fixed_index)
else:
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):
def __init__(self):
GenericEnumeration.__init__(self)
def getPasswordHashes(self):
warnMsg = "on DB2 it is not possible to list password hashes"
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
full version string, including the 4th digit (e.g 1.8.0.4).
version 1.7.2 CASE statements added and INFORMATION_SCHEMA
"""
if not conf.extensiveFp and (Backend.isDbmsWithin(HSQLDB_ALIASES) \

View File

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

View File

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