mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-20 18:54:02 +00:00
Minor refactoring together with a wider support for html entities
This commit is contained in:
parent
20a66567a3
commit
a86f9798b2
3 changed files with 282 additions and 1 deletions
|
|
@ -1,5 +1,16 @@
|
|||
# Reference: http://code.activestate.com/recipes/325205-cache-decorator-in-python-24/
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
def cachedmethod(f, cache={}):
|
||||
"""
|
||||
Method with a cached content
|
||||
|
||||
Reference: http://code.activestate.com/recipes/325205-cache-decorator-in-python-24/
|
||||
"""
|
||||
def _(*args, **kwargs):
|
||||
key = (f, tuple(args), frozenset(kwargs.items()))
|
||||
if key not in cache:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue