<s> import sys <EOL> if sys . version_info >= ( <NUM_LIT:3> , <NUM_LIT:0> ) : <EOL> unicode = str <EOL> def to_str ( b , encoding ) : <EOL> if hasattr ( b , '<STR_LIT>' ) and not isinstance ( b , unicode ) : <EOL> b = b . decode ( '<STR_LIT:utf-8>' ) <EOL> return b <EOL> def to_bytes ( s , encoding ) : <EOL> if hasattr ( s , '<STR_LIT>' ) and not isinstance ( s , bytes ) : <EOL> s = s . encode ( '<STR_LIT:utf-8>' ) <EOL> return s </s>
