asn1rt: add OID table into GLOBAL

This commit is contained in:
mitshell 2017-08-27 22:32:38 +02:00
parent 8d78837c8d
commit 58bf92ae5f
1 changed files with 4 additions and 0 deletions

View File

@ -60,9 +60,13 @@ def make_GLOBAL(global_name=None):
# dict indexed by modules' name and containing modules' objects
MOD = ASN1Dict()
# OID lookup table (OID value: OID name)
OID = {}
@classmethod
def clear(cla):
cla.MOD.clear()
cla.OID.clear()
if isinstance(global_name, str):
GLOBAL.__name__ = glob_name