<s> r"""<STR_LIT>""" <EOL> __version__ = '<STR_LIT>' <EOL> __all__ = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> ] <EOL> from decoder import JSONDecoder <EOL> from encoder import JSONEncoder <EOL> def dump ( obj , fp , skipkeys = False , ensure_ascii = True , check_circular = True , <EOL> allow_nan = True , cls = None , ** kw ) : <EOL> """<STR_LIT>""" <EOL> if cls is None : <EOL> cls = JSONEncoder <EOL> iterable = cls ( skipkeys = skipkeys , ensure_ascii = ensure_ascii , <EOL> check_circular = check_circular , allow_nan = allow_nan , <EOL> ** kw ) . iterencode ( obj ) <EOL> for chunk in iterable : <EOL> fp . write ( chunk ) <EOL> def dumps ( obj , skipkeys = False , ensure_ascii = True , check_circular = True , <EOL> allow_nan = True , cls = None , ** kw ) : <EOL> """<STR_LIT>""" <EOL> if cls is None : <EOL> cls = JSONEncoder <EOL> return cls ( skipkeys = skipkeys , ensure_ascii = ensure_ascii , <EOL> check_circular = check_circular , allow_nan = allow_nan , ** kw ) . encode ( obj ) <EOL> def load ( fp , encoding = None , cls = None , object_hook = None , ** kw ) : <EOL> """<STR_LIT>""" <EOL> if cls is None : <EOL> cls = JSONDecoder <EOL> if object_hook is not None : <EOL> kw [ '<STR_LIT>' ] = object_hook <EOL> return cls ( encoding = encoding , ** kw ) . decode ( fp . read ( ) ) <EOL> def loads ( s , encoding = None , cls = None , object_hook = None , ** kw ) : <EOL> """<STR_LIT>""" <EOL> if cls is None : <EOL> cls = JSONDecoder <EOL> if object_hook is not None : <EOL> kw [ '<STR_LIT>' ] = object_hook <EOL> return cls ( encoding = encoding , ** kw ) . decode ( s ) <EOL> def read ( s ) : <EOL> """<STR_LIT>""" <EOL> import warnings <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning ) <EOL> return loads ( s ) <EOL> def write ( obj ) : <EOL> """<STR_LIT>""" <EOL> import warnings <EOL> warnings . warn ( "<STR_LIT>" , <EOL> DeprecationWarning ) <EOL> return dumps ( obj ) </s>
