From 1dff0bc890b8e7a33c0ee299f6a95afe4685f2e7 2016-05-16 19:32:37
From: Thomas Kluyver <takowl@gmail.com>
Date: 2016-05-16 19:32:37
Subject: [PATCH] Merge pull request #9464 from Carreau/t42-historyapp

Update IPython/core/historyapp.py to use the new traitlets API.
---

diff --git a/IPython/core/historyapp.py b/IPython/core/historyapp.py
index 5f61eac..7a4bd32 100644
--- a/IPython/core/historyapp.py
+++ b/IPython/core/historyapp.py
@@ -34,15 +34,15 @@ This is an handy alias to `ipython history trim --keep=0`
 class HistoryTrim(BaseIPythonApplication):
     description = trim_hist_help
     
-    backup = Bool(False, config=True,
+    backup = Bool(False).tag(config=True,
         help="Keep the old history file as history.sqlite.<N>")
     
-    keep = Int(1000, config=True,
+    keep = Int(1000).tag(config=True,
         help="Number of recent lines to keep in the database.")
     
     flags = Dict(dict(
         backup = ({'HistoryTrim' : {'backup' : True}},
-            backup.get_metadata('help')
+            backup.help
         )
     ))
 
@@ -118,17 +118,17 @@ class HistoryTrim(BaseIPythonApplication):
 
 class HistoryClear(HistoryTrim):
     description = clear_hist_help
-    keep = Int(0, config=False,
+    keep = Int(0).tag(config=False,
         help="Number of recent lines to keep in the database.")
     
-    force = Bool(False, config=True,
+    force = Bool(False).tag(config=True,
         help="Don't prompt user for confirmation")
     
     flags = Dict(dict(
         force = ({'HistoryClear' : {'force' : True}},
-            force.get_metadata('help')),
+            force.help),
         f = ({'HistoryTrim' : {'force' : True}},
-            force.get_metadata('help')
+            force.help
         )
     ))
     aliases = Dict()