<s> import sys <EOL> PY2 = sys . version_info [ <NUM_LIT:0> ] == <NUM_LIT:2> <EOL> _identity = lambda x : x <EOL> if PY2 : <EOL> unichr = unichr <EOL> text_type = unicode <EOL> string_types = ( str , unicode ) <EOL> integer_types = ( int , long ) <EOL> from urllib import urlretrieve <EOL> text_to_native = lambda s , enc : s . encode ( enc ) <EOL> iterkeys = lambda d : d . iterkeys ( ) <EOL> itervalues = lambda d : d . itervalues ( ) <EOL> iteritems = lambda d : d . iteritems ( ) <EOL> from cStringIO import StringIO as BytesIO <EOL> from StringIO import StringIO <EOL> import cPickle as pickle <EOL> import ConfigParser as configparser <EOL> from itertools import izip , imap <EOL> range_type = xrange <EOL> cmp = cmp <EOL> input = raw_input <EOL> from string import lower as ascii_lowercase <EOL> import urlparse <EOL> def console_to_str ( s ) : <EOL> return s . decode ( '<STR_LIT>' ) <EOL> exec ( '<STR_LIT>' ) <EOL> else : <EOL> unichr = chr <EOL> text_type = str <EOL> string_types = ( str , ) <EOL> integer_types = ( int , ) <EOL> text_to_native = lambda s , enc : s <EOL> iterkeys = lambda d : iter ( d . keys ( ) ) <EOL> itervalues = lambda d : iter ( d . values ( ) ) <EOL> iteritems = lambda d : iter ( d . items ( ) ) <EOL> from io import StringIO , BytesIO <EOL> import pickle <EOL> import configparser <EOL> izip = zip <EOL> imap = map <EOL> range_type = range <EOL> cmp = lambda a , b : ( a > b ) - ( a < b ) <EOL> input = input <EOL> from string import ascii_lowercase <EOL> import urllib . parse as urllib <EOL> import urllib . parse as urlparse <EOL> from urllib . request import urlretrieve <EOL> from test import support <EOL> console_encoding = sys . __stdout__ . encoding <EOL> def console_to_str ( s ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return s . decode ( console_encoding ) <EOL> except UnicodeDecodeError : <EOL> return s . decode ( '<STR_LIT>' ) <EOL> except AttributeError : <EOL> return s <EOL> def reraise ( tp , value , tb = None ) : <EOL> if value . __traceback__ is not tb : <EOL> raise ( value . with_traceback ( tb ) ) <EOL> raise value <EOL> number_types = integer_types + ( float , ) </s>
