<s> __all__ = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' <EOL> ] <EOL> try : <EOL> import urlparse <EOL> string_types = ( type ( b'<STR_LIT>' ) , type ( u'<STR_LIT>' ) ) <EOL> text_type = unicode <EOL> COMPACT_SEPARATORS = ( b'<STR_LIT:U+002C>' , b'<STR_LIT::>' ) <EOL> VERBOSE_SEPARATORS = ( b'<STR_LIT:U+002C>' , b'<STR_LIT>' ) <EOL> def is_file ( obj ) : <EOL> return isinstance ( obj , file ) <EOL> except ImportError : <EOL> import urllib . parse as urlparse <EOL> from io import IOBase <EOL> string_types = ( str , ) <EOL> text_type = str <EOL> COMPACT_SEPARATORS = ( '<STR_LIT:U+002C>' , '<STR_LIT::>' ) <EOL> VERBOSE_SEPARATORS = ( '<STR_LIT:U+002C>' , '<STR_LIT>' ) <EOL> def is_file ( obj ) : <EOL> return isinstance ( obj , IOBase ) <EOL> def force_bytes ( string ) : <EOL> if isinstance ( string , string_types ) : <EOL> return string . encode ( '<STR_LIT:utf-8>' ) <EOL> return string </s>
