diff --git a/IPython/core/magics/history.py b/IPython/core/magics/history.py
index 7458333..8938649 100644
--- a/IPython/core/magics/history.py
+++ b/IPython/core/magics/history.py
@@ -16,7 +16,7 @@ from __future__ import print_function
 # Stdlib
 import os
 from io import open as io_open
-from argparse import Action
+from IPython.external.argparse import Action
 
 # Our own packages
 from IPython.core.error import StdinNotImplementedError