def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def forceCloseCliConnectionTo(self):
        self.modeList = None
        if self._connection:
            self._debugLog("Closing connection.")
            self._connection.close()
        self._connection = None