<s> try : <EOL> f = open ( '<STR_LIT>' , '<STR_LIT:w>' ) <EOL> f . write ( '<STR_LIT>' ) <EOL> f . close ( ) <EOL> except IOError as err : <EOL> print ( "<STR_LIT>" + str ( err ) ) <EOL> finally : <EOL> if '<STR_LIT:f>' in locals ( ) : <EOL> f . close ( ) </s>
