def _raw_document_class(document_class):
 marker = getattr(document_class, '_type_marker', None)
 return (marker == _RAW_BSON_DOCUMENT_MARKER)

def _raw_document_class ( document_class ) : marker = getattr ( document_class , '_type_marker' , None ) return ( marker == _RAW_BSON_DOCUMENT_MARKER )
determine if a document_class is a rawbsondocument class .