File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ def cachedmethod(f, cache={}):
1515 def _ (* args , ** kwargs ):
1616 try :
1717 key = (f , tuple (args ), frozenset (kwargs .items ()))
18+ if key not in cache :
19+ cache [key ] = f (* args , ** kwargs )
1820 except :
1921 key = "" .join (str (_ ) for _ in (f , args , kwargs ))
20- if key not in cache :
21- cache [key ] = f (* args , ** kwargs )
22+ if key not in cache :
23+ cache [key ] = f (* args , ** kwargs )
24+
2225 return cache [key ]
2326
2427 return _
Original file line number Diff line number Diff line change 1919from lib .core .revision import getRevisionNumber
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.0.5.23 "
22+ VERSION = "1.0.5.24 "
2323REVISION = getRevisionNumber ()
2424STABLE = VERSION .count ('.' ) <= 2
2525VERSION_STRING = "sqlmap/%s#%s" % (VERSION , "stable" if STABLE else "dev" )
You can’t perform that action at this time.
0 commit comments