replace only first instance of 6012 in graphite sab lib

This commit is contained in:
Bryan Herman 2014-04-13 16:03:03 -04:00
parent c929ccc421
commit da57eb14b3

View file

@ -85,7 +85,7 @@ print('Changing graphite ZAID from 6012 to 6000')
graphite = os.path.join('nndc', 'tsl', 'graphite.acer')
with open(graphite) as fh:
text = fh.read()
text = text.replace('6012', '6000')
text = text.replace('6012', '6000', 1)
with open(graphite, 'w') as fh:
fh.write(text)