1def upgrader(cpt): 2 for sec in cpt.sections(): 3 import re 4 # Search for a CPUs 5 if re.search('.*sys.*cpu', sec): 6 try: 7 junk = cpt.get(sec, 'instCnt') 8 cpt.set(sec, '_pid', '0') 9 except ConfigParser.NoOptionError: 10 pass 11 12legacy_version = 3 13