l.a.tagfiles : module documentation

Part of lp.archiveuploader

Utility classes for parsing Debian tag files.
Class TagFileParseError This exception is raised if parse_changes encounters nastiness
Function parse_tagfile_content Parses a tag file and returns a dictionary where each field is a key.
Function parse_tagfile Parses a tag file and returns a dictionary where each field is a key.
def parse_tagfile_content(content, filename=None, as_bytes=False):
Parses a tag file and returns a dictionary where each field is a key.

The mandatory first argument is the contents of the tag file as a string.

An OpenPGP cleartext signature will be stripped before parsing if one is present.

def parse_tagfile(filename):
Parses a tag file and returns a dictionary where each field is a key.

The mandatory first argument is the filename of the tag file, and the contents of that file is passed on to parse_tagfile_content.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.