def _get_timeout(self, timeout):
        if timeout is None:
            return self.opts['timeout']
        if isinstance(timeout, int):
            return timeout
        if isinstance(timeout, six.string_types):
            try:
                return int(timeout)
            except ValueError:
                return self.opts['timeout']
        # Looks like the timeout is invalid, use config
        return self.opts['timeout']
Validates that the user's password matches the given password and that the maximum
dataset/ETHPy150Open saltstack/salt/salt/client/__init__.py/LocalClient._get_timeout--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/password_util.py/ValidateUserPassword