#42 Limit newVersion's re.sub to a single replacement
Merged by ngompa. Opened by jistone.
jistone/rpmdevtools py3.7-re.sub  into  master

Download 42.patch

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.

ref: https://bugs.python.org/issue32308

Fixes #41

Pull-Request has been merged by ngompa

Metadata