<s> import traceback <EOL> def shell ( ) : <EOL> from config import get_version <EOL> print """<STR_LIT>""" % ( get_version ( ) ) <EOL> while True : <EOL> cmd = raw_input ( '<STR_LIT>' ) <EOL> try : <EOL> exec ( cmd ) <EOL> except Exception , e : <EOL> print traceback . format_exc ( e ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> shell ( ) </s>
