parameters: (d)
return_statement: return msg_list
docstring: Find ASCII-armored data in a string.
  
      :Parameters:
          - `d`: string of ASCII-armored data
  
      :Returns: list of `Armored` instances
  
      The Armored instance's `data` attribute is not necessarily a
      valid OpenPGP message (sequences of OpenPGP packets defined in
      rfc2440 10.2), but rather the string of data encoded and bounded
      according to the OpenPGP ASCII-armored format. Use this data to
      find packets.
docstring_summary: Find ASCII-armored data in a string.
docstring_tokens: Find ASCII - armored data in a string .
function: def list_armored(d):
      """Find ASCII-armored data in a string.
  
      :Parameters:
          - `d`: string of ASCII-armored data
  
      :Returns: list of `Armored` instances
  
      The Armored instance's `data` attribute is not necessarily a
      valid OpenPGP message (sequences of OpenPGP packets defined in
      rfc2440 10.2), but rather the string of data encoded and bounded
      according to the OpenPGP ASCII-armored format. Use this data to
      find packets.
      """
      ascmsg = Armored()
      msg_list = []
  
      for line in [x.rstrip() for x in d.split(os.linesep)]:
  
          if 1 == ascmsg.chew(line):
  
              if ascmsg.selfcheck():
                  msg_list.append(ascmsg)
              else:
                  raise PGPFormatError("Received bad armored block.") # useful??
  
              # signed message data will only register as completed once it
              # has received the header of the next SIGNATURE block (line)
              # therefore, 'line' has to be sent back to the new ascmsg object
              if 'SIGNED MESSAGE' == ascmsg.title:
                  ascmsg = Armored()
                  ascmsg.chew(line)
              else:
                  ascmsg = Armored()
  
      return msg_list
function_tokens: def list_armored ( d ) : ascmsg = Armored ( ) msg_list = [ ] for line in [ x . rstrip ( ) for x in d . split ( os . linesep ) ] : if 1 == ascmsg . chew ( line ) : if ascmsg . selfcheck ( ) : msg_list . append ( ascmsg ) else : raise PGPFormatError ( "Received bad armored block." ) # useful?? # signed message data will only register as completed once it # has received the header of the next SIGNATURE block (line) # therefore, 'line' has to be sent back to the new ascmsg object if 'SIGNED MESSAGE' == ascmsg . title : ascmsg = Armored ( ) ascmsg . chew ( line ) else : ascmsg = Armored ( ) return msg_list