<s> """<STR_LIT>""" <EOL> import sys <EOL> from docx import opendocx , getdocumenttext <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> try : <EOL> document = opendocx ( sys . argv [ <NUM_LIT:1> ] ) <EOL> newfile = open ( sys . argv [ <NUM_LIT:2> ] , '<STR_LIT:w>' ) <EOL> except : <EOL> print ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> ) <EOL> exit ( ) <EOL> paratextlist = getdocumenttext ( document ) <EOL> newparatextlist = [ ] <EOL> for paratext in paratextlist : <EOL> newparatextlist . append ( paratext . encode ( "<STR_LIT:utf-8>" ) ) <EOL> newfile . write ( '<STR_LIT>' . join ( newparatextlist ) ) </s>
