Example #1
0
    def __getitem__(self, key, _get_mode=False):
        """
        Sanitized __getitem__

        :param key: the key for the value
        :type key: str
        :param _get_mode: is a no-op for this class as there is no index but
                          used because get() calls it.
        :type _get_mode: bool
        """
        val = EnvironHeaders.__getitem__(self, key, _get_mode=_get_mode)
        return self.sanitize_input(val)
Example #2
0
    def __getitem__(self, key, _get_mode=False):
        """
        Sanitized __getitem__

        :param key: the key for the value
        :type key: str
        :param _get_mode: is a no-op for this class as there is no index but
                          used because get() calls it.
        :type _get_mode: bool
        """
        val = EnvironHeaders.__getitem__(self, key, _get_mode=_get_mode)
        return self.sanitize_input(val)