def __init__(self, package, version):
        """Construct a new requirement.

        :param package: the package name.
        :param version: a semver compatible version specification.
        """
        self.package = package
        self.version = version
        if self.version and not re.match(r"[<=>~]", version[:2]):
            self.version = "=={}".format(self.version)
def loginSsh(self):
        self._setupLog()
        self._debugLog("Login in as "+self._loginUser.username)

        try:
            self._loginUser.sendPassword()
            return True
        except Exception as e:
            self.forceCloseCliConnectionTo()
            raise Exception('Exception ('+str(e)+') '+'Expected CLI response: "Password:"' + "\n Got: \n" + self._lastExpect())