You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
352 B

import sys
bs, q = chr(92), chr(34)
p = 'crm-customer/src/main/java/com/crm/customer/domain/dto/CustomerDetailHeadDTO.java'
bad = (bs + bs + q + '--' + bs + bs + q).encode()
good = (bs + q + '--' + bs + q).encode()
data = open(p, 'rb').read()
n = data.count(bad)
data = data.replace(bad, good)
open(p, 'wb').write(data)
print('fixed occurrences:', n)