code: def is_armor(text):
          
          if isinstance(text, (bytes, bytearray)):  # pragma: no cover
              text = text.decode('latin-1')
  
          return Armorable.__armor_regex.search(text) is not None
docs: Whether the ``text`` provided is an ASCII-armored PGP block.
          :param text: A possible ASCII-armored PGP block.
          :raises: :py:exc:`TypeError` if ``text`` is not a ``str``, ``bytes``, or ``bytearray``
          :returns: Whether the text is ASCII-armored.