File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,10 +61,11 @@ def _f(*args, **kwargs):
6161 key = args
6262
6363 with lock :
64- try :
65- return cache [key ]
66- except KeyError : # Note: single lookup, as an entry can get evicted in between (unlocked on Python 3)
67- pass
64+ if key in cache :
65+ try :
66+ return cache [key ]
67+ except KeyError : # Note: evicted in between (unlocked on Python 3)
68+ pass
6869
6970 except TypeError :
7071 # Note: fallback (slow-path) for unhashable arguments
@@ -75,10 +76,11 @@ def _f(*args, **kwargs):
7576 key = (_FROZEN_KEY_MARKER , _freeze (args ))
7677
7778 with lock :
78- try :
79- return cache [key ]
80- except KeyError :
81- pass
79+ if key in cache :
80+ try :
81+ return cache [key ]
82+ except KeyError :
83+ pass
8284 except TypeError :
8385 # Note: genuinely uncacheable arguments; skip caching altogether
8486 return f (* args , ** kwargs )
Original file line number Diff line number Diff line change 1919from thirdparty import six
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.10.10.26 "
22+ VERSION = "1.10.10.27 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments