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

Function __getattr__

pager_lib/pyasn1/codec/ber/decoder.py:2203–2207  ·  view source on GitHub ↗
(attr: str)

Source from the content-addressed store, hash-verified

2201decode = Decoder()
2202
2203def __getattr__(attr: str):
2204 if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
2205 warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
2206 return globals()[newAttr]
2207 raise AttributeError(attr)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected