def newVersion():
version=None<EOL>fname='<STR_LIT>'<EOL>with open(fname) as f:<EOL><INDENT>raw=f.read().split("<STR_LIT:\n>")<EOL>for i,line in enumerate(raw):<EOL><INDENT>if line.startswith("<STR_LIT>"):<EOL><INDENT>if version is None:<EOL><INDENT>version = int(line.split("<STR_LIT:=>")[<NUM_LIT:1>])<EOL><DEDENT>raw[i]="<STR_LIT>"%(version+<NUM_LIT:1>)<EOL><DEDENT><DEDENT><DEDENT>with open(fname,'<STR_LIT:w>') as f:<EOL><INDENT>f.write("<STR_LIT:\n>".join(raw))<EOL><DEDENT>print("<STR_LIT>"%(version,version+<NUM_LIT:1>))<EOL>
increments version counter in swhlab/version.py