Skip to content

make copyright parser more strict

In https://bugs.debian.org/788864, the suggestion is made that the Copyright parser could become more strict, insisting that fields required by the specification in each stanza actually exist.

These patches add a MachineReadableFormatError (derived from ValueError) that is raised on invalid input. The old behaviour of warning on selected problems can be obtained by setting strict=False.

Edited by Stuart Prescott

Merge request reports

Loading