MCPcopy
hub / github.com/aio-libs/aiohttp / wrapper

Method wrapper

aiohttp/test_utils.py:184–188  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

182 @staticmethod
183 def define(rmatch):
184 def wrapper(fn):
185 f_locals = sys._getframe(1).f_locals
186 mapping = f_locals.setdefault('_mapping', [])
187 mapping.append((re.compile(rmatch), fn.__name__))
188 return fn
189
190 return wrapper
191

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected