Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d81da6

Browse files
committed
Cosmetics
1 parent 6716315 commit 4d81da6

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

lib/controller/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def start():
308308
warnMsg = "Ctrl+C detected in multiple target mode"
309309
logger.warn(warnMsg)
310310

311-
message = "do you want to skip to the next target in list [Y/n/q]"
311+
message = "do you want to skip to the next target in list? [Y/n/q]"
312312
test = readInput(message, default="Y")
313313

314314
if not test or test[0] in ("y", "Y"):

lib/request/basic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def checkCharEncoding(encoding):
7878
else:
7979
return encoding
8080

81-
#http://www.destructor.de/charsets/index.htm
82-
translate = { 'windows-874':'iso-8859-11', 'en_us':'utf8' }
81+
# http://www.destructor.de/charsets/index.htm
82+
translate = { 'windows-874': 'iso-8859-11', 'en_us': 'utf8' }
8383

8484
for delimiter in (';', ','):
8585
if delimiter in encoding:
@@ -117,9 +117,10 @@ def decodePage(page, contentEncoding, contentType):
117117

118118
page = data.read()
119119

120-
#http://stackoverflow.com/questions/1020892/python-urllib2-read-to-unicode
120+
# http://stackoverflow.com/questions/1020892/python-urllib2-read-to-unicode
121121
if contentType and (contentType.find('charset=') != -1):
122122
charset = checkCharEncoding(contentType.split('charset=')[-1])
123+
123124
if charset:
124125
page = getUnicode(page, charset)
125126

lib/request/comparison.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
5555
if not kb.nullConnection and not conf.longestCommon:
5656
for item in kb.dynamicMarkings:
5757
prefix, postfix = item
58+
5859
if prefix is None:
5960
page = re.sub('(?s)^.+%s' % postfix, postfix, page)
6061
elif postfix is None:
@@ -75,6 +76,7 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
7576

7677
elif not conf.eRegexp and not conf.eString and kb.nullConnection and pageLength:
7778
ratio = 1. * pageLength / len(conf.seqMatcher.a)
79+
7880
if ratio > 1.:
7981
ratio = 1. / ratio
8082
else:

0 commit comments

Comments
 (0)