#NEWLINE# def dump( obj , fp , **kwargs ) : #NEWLINE# #INDENT# 'Like :func:`dumps` but writes into a file object.' #NEWLINE# _dump_arg_defaults ( kwargs ) #NEWLINE# encoding = kwargs . pop ( 'encoding' , None ) #NEWLINE# if ( encoding is not None ) : #NEWLINE# #INDENT# fp = _wrap_writer_for_text ( fp , fp ) #NEWLINE# #UNINDENT# _json . dump ( obj , fp , ** kwargs )