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

Method __iter__

pager_lib/pyasn1/codec/ber/decoder.py:1991–2004  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1989 self._options = options
1990
1991 def __iter__(self):
1992 while True:
1993 for asn1Object in self._singleItemDecoder(
1994 self._substrate, self._asn1Spec, **self._options):
1995 yield asn1Object
1996
1997 for chunk in isEndOfStream(self._substrate):
1998 if isinstance(chunk, SubstrateUnderrunError):
1999 yield
2000
2001 break
2002
2003 if chunk:
2004 break
2005
2006
2007class Decoder(object):

Callers

nothing calls this directly

Calls 1

isEndOfStreamFunction · 0.90

Tested by

no test coverage detected