ea772da Limit newVersion's re.sub to a single replacement

Authored and Committed by jistone 5 years ago
    Limit newVersion's re.sub to a single replacement
    
    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
    
        
file modified
+2 -2