<s> import sys <EOL> if sys . version_info [ <NUM_LIT:0> ] == <NUM_LIT:3> : <EOL> text_type = str <EOL> string_types = ( str , ) <EOL> else : <EOL> text_type = unicode <EOL> string_types = ( str , unicode ) <EOL> def to_bytes ( text ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( text , text_type ) : <EOL> text = text . encode ( '<STR_LIT:utf-8>' ) <EOL> return text </s>
