Warning, file /office/calligra/windows/calligra_installer/simplifyHeatFragment.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 import os 0002 import re 0003 0004 finname = 'HeatFragment.h' 0005 foutname = 'HeatFragment.tmp' 0006 fin = open(finname,'r') 0007 fout = open(foutname,'w') 0008 0009 0010 print('Processing HeatFragment (simplify FileIDs)') 0011 for line in fin: 0012 parsedLine = re.findall(r'\bCALLIGRA_VERSION_STRING "([A-Za-z0-9. ]*)"', line) 0013 0014 if parsedLine != []: 0015 break 0016 fout.write(line); 0017 0018 fout.close() 0019 print('Complete')