From da57eb14b32725f1d8cbc30b2a6d1e9671a79c24 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Sun, 13 Apr 2014 16:03:03 -0400 Subject: [PATCH] replace only first instance of 6012 in graphite sab lib --- data/get_nndc_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/get_nndc_data.py b/data/get_nndc_data.py index 7ba3d66cfd..4345b731e6 100755 --- a/data/get_nndc_data.py +++ b/data/get_nndc_data.py @@ -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)