def _get_boolean(data, position, dummy0, dummy1, dummy2):
 end = (position + 1)
 boolean_byte = data[position:end]
 if (boolean_byte == '\x00'):
  return (False, end)
 elif (boolean_byte == '\x01'):
  return (True, end)
 raise InvalidBSON(('invalid boolean value: %r' % boolean_byte))

def _get_boolean ( data , position , dummy0 , dummy1 , dummy2 ) : end = ( position + 1 ) boolean_byte = data [ position : end ] if ( boolean_byte == '\x00' ) : return ( False , end ) elif ( boolean_byte == '\x01' ) : return ( True , end ) raise InvalidBSON ( ( 'invalid boolean value: %r' % boolean_byte ) )
decode a bson true/false to python true/false .