<s> import sys <EOL> PY2 = sys . version_info [ <NUM_LIT:0> ] == <NUM_LIT:2> <EOL> if PY2 : <EOL> text_type = unicode <EOL> string_types = ( str , unicode ) <EOL> unichr = unichr <EOL> reduce = reduce <EOL> else : <EOL> text_type = str <EOL> string_types = ( str , ) <EOL> unichr = chr <EOL> from functools import reduce </s>
