MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / _local_property

Function _local_property

thirdparty/bottle/bottle.py:2293–2308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2291
2292
2293def _local_property():
2294 ls = threading.local()
2295
2296 def fget(_):
2297 try:
2298 return ls.var
2299 except AttributeError:
2300 raise RuntimeError("Request context not initialized.")
2301
2302 def fset(_, value):
2303 ls.var = value
2304
2305 def fdel(_):
2306 del ls.var
2307
2308 return property(fget, fset, fdel, 'Thread-local property')
2309
2310
2311class LocalRequest(BaseRequest):

Callers 2

LocalRequestClass · 0.85
LocalResponseClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…