

def get_history(self, current_project_only=True):
    'Return a copy of the requested history (global or project-specific): closed files followed by opened files'
    if (len(self.history) == 0):
        self.__load_history()
    if current_project_only:
        self.project_name = self.get_current_project_key()
    else:
        self.project_name = 'global'
    if (self.project_name in self.history):
        history = self.history[self.project_name]
        return dict(opened=history['opened'][:], closed=current_project_only['closed'][:])
    else:
        self.debug(('WARN: Project %s could not be found in the file history list - returning an empty history list' % self.project_name))
        return dict(opened=[], closed=[])

dataset/ETHPy150Open FichteFoll/FileHistory/file_history.py FileHistory.get_history/VarMisuse@103/167 `history`->`current_project_only`