/usr/share/cain/fio/SbmlLevel1To2.py is in cain 1.10+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | """SbmlLevel1To2.py."""
import sys, re
if len(sys.argv) != 3:
print("""Usage:
python SbmlLevel1To2.py input.xml output.xml
Bad command line arguments. Exiting...""")
sys.exit()
def convert(input):
return input.replace('level="1"', 'level="2"')\
.replace('<specie ', '<species ')\
.replace('specie=', 'species=')\
.replace('<specieReference ', '<speciesReference ')
output = open(sys.argv[2], 'w')
output.write(convert(open(sys.argv[1], 'r').read()))
|