

def restore_prefs(self, prefs):
    ' Restores any saved user preference information associated with the\n            editor.\n        '
    self.history.history = prefs.get('history', [])[:prefs.factory.entries]

dataset/ETHPy150Open enthought/traitsui/traitsui/wx/history_editor.py _HistoryEditor.restore_prefs/VarMisuse@31/62 `self`->`prefs`