Python 3.7 changed re.sub to replace empty matches next to a previous non-empty match, which caused SpecFile.newVersion to double its replacements. We can use count=1 to limit this.
re.sub
SpecFile.newVersion
count=1
ref: https://bugs.python.org/issue32308
Fixes #41
Pull-Request has been merged by ngompa
Python 3.7 changed
re.subto replace empty matches next to a previousnon-empty match, which caused
SpecFile.newVersionto double itsreplacements. We can use
count=1to limit this.ref: https://bugs.python.org/issue32308
Fixes #41