code: def parse_value(value, allow_spaces=True, unquote=default_unquote):
      "Process a cookie value"
      if value is None:
          return None
      value = strip_spaces_and_quotes(value)
      value = parse_string(value, unquote=unquote)
      if not allow_spaces:
          assert ' ' not in value
      return valuf parse_value(value, allow_spaces=True, unquote=default_unquote):
      "Process a cookie value"
      if value is None:
          return None
      value = strip_spaces_and_quotes(value)
      value = parse_string(value, unquote=unquote)
      if not allow_spaces:
          assert ' ' not in value
      return value
docs: Process a cookie value