MCPcopy Index your code
hub / github.com/webpy/webpy / decorator

Function decorator

web/application.py:572–577  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

570
571def with_metaclass(mcls):
572 def decorator(cls):
573 body = vars(cls).copy()
574 # clean out class body
575 body.pop("__dict__", None)
576 body.pop("__weakref__", None)
577 return mcls(cls.__name__, cls.__bases__, body)
578
579 return decorator
580

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected