MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __getattr__

Function __getattr__

pager_lib/pyasn1/codec/native/decoder.py:240–244  ·  view source on GitHub ↗
(attr: str)

Source from the content-addressed store, hash-verified

238decode = Decoder()
239
240def __getattr__(attr: str):
241 if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
242 warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
243 return globals()[newAttr]
244 raise AttributeError(attr)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected