#NEWLINE# def serialize( format , queryset , **options ) : #NEWLINE# #INDENT# '\n    Serialize a queryset (or any iterator that returns database objects) using\n    a certain serializer.\n    ' #NEWLINE# s = get_serializer ( format ) ( ) #NEWLINE# s . serialize ( queryset , ** options ) #NEWLINE# return s . getvalue ( )