diff options
author | elie <elie> | 2011-11-07 16:11:11 +0000 |
---|---|---|
committer | elie <elie> | 2011-11-07 16:11:11 +0000 |
commit | 27774d4f3ddbdb87713eba6be45847acd0bf981c (patch) | |
tree | 6d029a075fe090aa0efda01f04378fc93cd7374b /pyasn1/type/base.py | |
parent | 108264527c2803a00e3821025151da1cc96bce76 (diff) | |
download | pyasn1-27774d4f3ddbdb87713eba6be45847acd0bf981c.tar.gz |
NoValue is now iterable
Diffstat (limited to 'pyasn1/type/base.py')
-rw-r--r-- | pyasn1/type/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyasn1/type/base.py b/pyasn1/type/base.py index bc18528..aba7fc5 100644 --- a/pyasn1/type/base.py +++ b/pyasn1/type/base.py @@ -46,6 +46,9 @@ class Asn1ItemBase(Asn1Item): class __NoValue: def __getattr__(self, attr): raise error.PyAsn1Error('No value for %s()' % attr) + def __getitem__(self, i): + raise error.PyAsn1Error('No value') + noValue = __NoValue() # Base class for "simple" ASN.1 objects. These are immutable. |