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

Skip to content

Commit 1674142

Browse files
committed
Minor cosmetic fixes
1 parent 2bbe0c9 commit 1674142

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/request/basic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,20 @@ def checkCharEncoding(encoding):
8787

8888
if ';' in encoding:
8989
encoding = encoding[:encoding.find(';')]
90-
#http://philip.html5.org/data/charsets-2.html
90+
91+
# http://philip.html5.org/data/charsets-2.html
9192
if encoding in translate:
9293
encoding = translate[encoding]
9394
elif encoding.startswith('cp-'):
9495
encoding = 'cp%s' % encoding[3:]
9596
elif encoding.startswith('windows') and not encoding.startswith('windows-'):
9697
encoding = 'windows-%s' % encoding[7:]
98+
9799
try:
98100
codecs.lookup(encoding)
99101
except LookupError:
100102
warnMsg = "unknown charset '%s'. " % encoding
101-
warnMsg += "please report by e-mail to [email protected]."
103+
warnMsg += "Please report by e-mail to [email protected]."
102104

103105
logger.warn(warnMsg)
104106
encoding = conf.dataEncoding

lib/techniques/blind/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
9393
progress = ProgressBar(maxValue=length)
9494
progressTime = []
9595

96-
if numThreads is not None:
96+
if numThreads > 1:
9797
debugMsg = "starting %d thread%s" % (numThreads, ("s" if numThreads > 1 else ""))
9898
logger.debug(debugMsg)
9999

0 commit comments

Comments
 (0)