Bug#934273: python3-debian: please support parsing Source: package (version)
David Bremner
bremner at debian.org
Fri Aug 9 11:20:23 BST 2019
David Bremner <bremner at debian.org> writes:
> def parse_source(string):
> matches=rex.match(string)
> if matches:
> return (matches.group(1),matches.group(2))
> else:
> return string
Probably return type polymorphism is a terrible idea in python. But I
guess you knew that. Maybe return (string,None) is the simplest
option. Or nicer, find the correct version from the binary package,
which I think is closer to your original idea.
More information about the pkg-python-debian-maint
mailing list