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

Skip to content

Commit 6433be8

Browse files
committed
Style update
1 parent 996e882 commit 6433be8

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
redirectHandler = SmartRedirectHandler()
151151
rangeHandler = HTTPRangeHandler()
152152

153-
def __urllib2Opener():
153+
def _urllib2Opener():
154154
"""
155155
This function creates the urllib2 OpenerDirector.
156156
"""
@@ -1300,9 +1300,9 @@ def _cleanupOptions():
13001300
width = getConsoleWidth()
13011301

13021302
if conf.eta:
1303-
conf.progressWidth = width-26
1303+
conf.progressWidth = width - 26
13041304
else:
1305-
conf.progressWidth = width-46
1305+
conf.progressWidth = width - 46
13061306

13071307
if conf.testParameter:
13081308
conf.testParameter = urldecode(conf.testParameter)
@@ -2087,7 +2087,7 @@ def init(inputOptions=AttribDict(), overrideOptions=False):
20872087
_setSafeUrl()
20882088
_setGoogleDorking()
20892089
_setBulkMultipleTargets()
2090-
__urllib2Opener()
2090+
_urllib2Opener()
20912091
_checkTor()
20922092
_setCrawler()
20932093
_findPageForms()

lib/parse/payloads.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,13 @@ def cleanupVals(text, tag):
1616
text = text.split(',')
1717

1818
if isinstance(text, basestring):
19-
if text.isdigit():
20-
text = int(text)
21-
else:
22-
text = str(text)
19+
text = int(text) if text.isdigit() else str(text)
2320

2421
elif isinstance(text, list):
2522
count = 0
2623

27-
for t in text:
28-
if t.isdigit():
29-
t = int(t)
30-
else:
31-
t = str(t)
32-
33-
text[count] = t
24+
for _ in text:
25+
text[count] = int(_) if _.isdigit() else str(_)
3426
count += 1
3527

3628
if len(text) == 1 and tag not in ("clause", "where"):

0 commit comments

Comments
 (0)