File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 150150redirectHandler = SmartRedirectHandler ()
151151rangeHandler = 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 ()
Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments