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

Function __getattr__

pager_lib/pyasn1/codec/cer/decoder.py:145–149  ·  view source on GitHub ↗
(attr: str)

Source from the content-addressed store, hash-verified

143decode = Decoder()
144
145def __getattr__(attr: str):
146 if newAttr := {"tagMap": "TAG_MAP", "typeMap": "TYPE_MAP"}.get(attr):
147 warnings.warn(f"{attr} is deprecated. Please use {newAttr} instead.", DeprecationWarning)
148 return globals()[newAttr]
149 raise AttributeError(attr)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected