def _load_history(self): try: hist_file = self.hist_file() if hist_file: readline.read_history_file(os.path.expanduser(hist_file)) except FileNotFoundError: pass