Adding WAF script for SecureIIS

This commit is contained in:
Miroslav Stampar
2013-02-21 21:34:26 +01:00
parent c555120c1f
commit 6acb2480b8
3 changed files with 21 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ def cachedmethod(f, cache={}):
"""
def _(*args, **kwargs):
key = (f, tuple(args), frozenset(kwargs.items()))
key = (f, tuple(args), str(kwargs))
if key not in cache:
cache[key] = f(*args, **kwargs)
return cache[key]