<s> "<STR_LIT>" <EOL> from __future__ import print_function <EOL> def one ( ) : <EOL> return <NUM_LIT:1> <EOL> def tryScope1 ( x ) : <EOL> try : <EOL> try : <EOL> x += one ( ) <EOL> finally : <EOL> print ( "<STR_LIT>" ) <EOL> try : <EOL> _z = one ( ) <EOL> finally : <EOL> print ( "<STR_LIT>" ) <EOL> except : <EOL> print ( "<STR_LIT>" ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> tryScope1 ( <NUM_LIT:1> ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT:20> ) <EOL> tryScope1 ( [ <NUM_LIT:1> ] ) <EOL> def tryScope2 ( x , someExceptionClass ) : <EOL> try : <EOL> x += <NUM_LIT:1> <EOL> except someExceptionClass as e : <EOL> print ( "<STR_LIT>" , someExceptionClass , repr ( e ) ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> def tryScope3 ( x ) : <EOL> if x : <EOL> try : <EOL> x += <NUM_LIT:1> <EOL> except TypeError : <EOL> print ( "<STR_LIT>" ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT:20> ) <EOL> tryScope2 ( <NUM_LIT:1> , TypeError ) <EOL> tryScope2 ( [ <NUM_LIT:1> ] , TypeError ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT:20> ) <EOL> tryScope3 ( <NUM_LIT:1> ) <EOL> tryScope3 ( [ <NUM_LIT:1> ] ) <EOL> tryScope3 ( [ ] ) <EOL> print ( '<STR_LIT:*>' * <NUM_LIT:20> ) <EOL> def tryScope4 ( x ) : <EOL> try : <EOL> x += <NUM_LIT:1> <EOL> except : <EOL> print ( "<STR_LIT>" ) <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> finally : <EOL> print ( "<STR_LIT>" ) <EOL> tryScope4 ( <NUM_LIT:1> ) <EOL> tryScope4 ( [ <NUM_LIT:1> ] ) <EOL> def tryScope5 ( ) : <EOL> import sys <EOL> print ( "<STR_LIT>" , sys . exc_info ( ) ) <EOL> try : <EOL> try : <EOL> undefined_global += <NUM_LIT:1> <EOL> finally : <EOL> print ( "<STR_LIT>" , sys . exc_info ( ) ) <EOL> except : <EOL> pass <EOL> tryScope5 ( ) </s>
