<s> import sys <EOL> def console_write ( string , prefix = False ) : <EOL> """<STR_LIT>""" <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> if isinstance ( string , unicode ) : <EOL> string = string . encode ( '<STR_LIT>' ) <EOL> if prefix : <EOL> sys . stdout . write ( '<STR_LIT>' ) <EOL> print ( string ) </s>
