<s> import sys <EOL> if sys . version_info [ <NUM_LIT:0> ] < <NUM_LIT:3> : <EOL> PY3 = False <EOL> def b ( s ) : <EOL> return s <EOL> import cStringIO as StringIO <EOL> StringIO = BytesIO = StringIO . StringIO <EOL> callable = callable <EOL> integer_types = ( int , long ) <EOL> iteritems = lambda o : o . iteritems ( ) <EOL> itervalues = lambda o : o . itervalues ( ) <EOL> iterkeys = lambda o : o . iterkeys ( ) <EOL> from itertools import izip <EOL> long_type = long <EOL> next = lambda o : o . next ( ) <EOL> import cPickle as pickle <EOL> from cPickle import dumps , loads , dump , load <EOL> string_type = basestring <EOL> text_type = unicode <EOL> bytes_type = str <EOL> unichr = unichr <EOL> from urllib import urlretrieve <EOL> def u ( s ) : <EOL> return unicode ( s , "<STR_LIT>" ) <EOL> def with_metaclass ( meta , base = object ) : <EOL> class _WhooshBase ( base ) : <EOL> __metaclass__ = meta <EOL> return _WhooshBase <EOL> xrange = xrange <EOL> zip_ = zip <EOL> else : <EOL> PY3 = True <EOL> import collections <EOL> def b ( s ) : <EOL> return s . encode ( "<STR_LIT>" ) <EOL> import io <EOL> BytesIO = io . BytesIO <EOL> callable = lambda o : isinstance ( o , collections . Callable ) <EOL> exec_ = eval ( "<STR_LIT>" ) <EOL> integer_types = ( int , ) <EOL> iteritems = lambda o : o . items ( ) <EOL> itervalues = lambda o : o . values ( ) <EOL> iterkeys = lambda o : iter ( o . keys ( ) ) <EOL> izip = zip <EOL> long_type = int <EOL> next = next <EOL> import pickle <EOL> from pickle import dumps , loads , dump , load <EOL> StringIO = io . StringIO <EOL> string_type = str <EOL> text_type = str <EOL> bytes_tyep = bytes <EOL> unichr = chr <EOL> from urllib . request import urlretrieve <EOL> def u ( s ) : <EOL> return s <EOL> def with_metaclass ( meta , base = object ) : <EOL> ns = dict ( base = base , meta = meta ) <EOL> exec_ ( """<STR_LIT>""" , ns ) <EOL> return ns [ "<STR_LIT>" ] <EOL> xrange = range <EOL> zip_ = lambda * args : list ( zip ( * args ) ) </s>
