Print Converted as debug info.

This commit is contained in:
georgelinsdell 2017-12-20 15:52:52 +00:00
commit 9b75cd0724

View file

@ -30,6 +30,7 @@ def main(argv):
with open(filecopy,'r') as c:
print("Detected %s instances of %s pre-conversion"%(c.read().count(pattern),pattern))
converted = c.read().replace(pattern, substitute)
print ("DEBUG: %s "%converted)
print("Confirmed %s instances of %s post-conversion"%(converted.count(substitute),substitute))
f.write(converted)
c.close()