]> Cypherpunks.ru repositories - pyderasn.git/commitdiff
Underscore internal context's keys, they are private
authorSergey Matveev <stargrave@stargrave.org>
Mon, 23 Jul 2018 08:38:18 +0000 (11:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 23 Jul 2018 08:38:18 +0000 (11:38 +0300)
pyderasn.py

index 98fb8afe5501c3f6564d84f1fe16029967aac284..104ad3193641142ef1ae8c69d47281a0308eb36d 100755 (executable)
@@ -4504,7 +4504,7 @@ class Sequence(Obj):
                     continue
                 raise
 
-            defined = get_def_by_path(ctx.get("defines", ()), sub_decode_path)
+            defined = get_def_by_path(ctx.get("_defines", ()), sub_decode_path)
             if defined is not None:
                 defined_by, defined_spec = defined
                 if issubclass(value.__class__, SequenceOf):
@@ -4576,7 +4576,7 @@ class Sequence(Obj):
                 for rel_path, schema in spec_defines:
                     defined = schema.get(value, None)
                     if defined is not None:
-                        ctx.setdefault("defines", []).append((
+                        ctx.setdefault("_defines", []).append((
                             abs_decode_path(sub_decode_path[:-1], rel_path),
                             (value, defined),
                         ))