HMBXR5601-827 - Versionstamper.py is leaving excess files in package

This commit is contained in:
Dan Hawkins 2019-09-05 09:00:42 +01:00
commit ac0b047a69

View file

@ -23,7 +23,7 @@ def main(argv):
fileread = c.read()
count = 0
with open(filetoconvert, 'x') as f:
with open(filetoconvert, 'w') as f:
print("Detected %s instances of %s pre-conversion"%(fileread.count(pattern),pattern))
converted = fileread.replace(pattern, substitute)
count = converted.count(substitute)