def _get_timeout(self, timeout):
        '''
        Return the timeout to use
        '''
        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 __HOLE__:
                return self.opts['timeout']
        # Looks like the timeout is invalid, use config
        return self.opts['timeout']
dataset/ETHPy150Open saltstack/salt/salt/client/__init__.py/LocalClient._get_timeout