<s> """<STR_LIT>""" <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] <EOL> import sys <EOL> if sys . version_info [ <NUM_LIT:0> ] >= <NUM_LIT:3> : <EOL> import io <EOL> bytes = bytes <EOL> unicode = str <EOL> asunicode = str <EOL> def asbytes ( s ) : <EOL> if isinstance ( s , bytes ) : <EOL> return s <EOL> return s . encode ( '<STR_LIT>' ) <EOL> def asstr ( s ) : <EOL> if isinstance ( s , str ) : <EOL> return s <EOL> return s . decode ( '<STR_LIT>' ) <EOL> def asstr2 ( s ) : <EOL> if isinstance ( s , str ) : <EOL> return s <EOL> elif isinstance ( s , bytes ) : <EOL> return s . decode ( '<STR_LIT>' ) <EOL> else : <EOL> return str ( s ) <EOL> def isfileobj ( f ) : <EOL> return isinstance ( f , io . FileIO ) <EOL> def open_latin1 ( filename , mode = '<STR_LIT:r>' ) : <EOL> return open ( filename , mode = mode , encoding = '<STR_LIT>' ) <EOL> strchar = '<STR_LIT>' <EOL> from io import BytesIO , StringIO <EOL> else : <EOL> bytes = str <EOL> unicode = unicode <EOL> asbytes = str <EOL> asstr = str <EOL> asstr2 = str <EOL> strchar = '<STR_LIT:S>' <EOL> def isfileobj ( f ) : <EOL> return isinstance ( f , file ) <EOL> def asunicode ( s ) : <EOL> if isinstance ( s , unicode ) : <EOL> return s <EOL> return s . decode ( '<STR_LIT:ascii>' ) <EOL> def open_latin1 ( filename , mode = '<STR_LIT:r>' ) : <EOL> return open ( filename , mode = mode ) <EOL> from StringIO import StringIO <EOL> BytesIO = StringIO <EOL> def getexception ( ) : <EOL> return sys . exc_info ( ) [ <NUM_LIT:1> ] <EOL> def asbytes_nested ( x ) : <EOL> if hasattr ( x , '<STR_LIT>' ) and not isinstance ( x , ( bytes , unicode ) ) : <EOL> return [ asbytes_nested ( y ) for y in x ] <EOL> else : <EOL> return asbytes ( x ) <EOL> def asunicode_nested ( x ) : <EOL> if hasattr ( x , '<STR_LIT>' ) and not isinstance ( x , ( bytes , unicode ) ) : <EOL> return [ asunicode_nested ( y ) for y in x ] <EOL> else : <EOL> return asunicode ( x ) </s>
