<s> from pythondoc import ET , parse , CompactHTML <EOL> import sys <EOL> MODULE_NAME = "<STR_LIT>" <EOL> PATH_TO_FILES = sys . argv [ <NUM_LIT:1> ] <EOL> module = ET . Element ( "<STR_LIT>" , name = MODULE_NAME ) <EOL> parts = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> flist = [ "<STR_LIT>" % ( PATH_TO_FILES , p ) for p in parts ] <EOL> for fname in flist : <EOL> print "<STR_LIT>" , fname <EOL> elem = parse ( fname ) <EOL> for elem in elem : <EOL> if module and elem . tag == "<STR_LIT:info>" : <EOL> continue <EOL> module . append ( elem ) <EOL> formatter = CompactHTML ( ) <EOL> print formatter . save ( module , MODULE_NAME ) , "<STR_LIT>" </s>
