using strip() in this case has some issues (using v as sample prefix):
if the version string ends with v (e.g. '1.2.3-dev'), trailing v will be stripped
the first argument to strip is treated as a collection (even though a non-string will raise a TypeError), and all instances of any character in the prefix will be stripped from both ends. Thus:
https://github.com/otakup0pe/avakas/blob/f554deafc5481768e669eb274ed96fe0d03ea521/avakas/avakas.py#L66
using
strip()
in this case has some issues (usingv
as sample prefix):v
(e.g.'1.2.3-dev'
), trailingv
will be strippedstrip
is treated as a collection (even though a non-string will raise aTypeError
), and all instances of any character in the prefix will be stripped from both ends. Thus:Don't have tests exercising this done yet, just saw this issue and logging it for now. No known cases of error in the wild