##// END OF EJS Templates
Backport PR #11054: MAINT: Update locate_profile import to avoid warning...
Backport PR #11054: MAINT: Update locate_profile import to avoid warning Description Currently `IPython.core.history.HistoryAccessor` throws a `UserWarning` upon creation due to an import of `locate_profile`. I realize I can silence the warning in my application but figured this deserved a quick fix. ``` UserWarning: locate_profile has moved to the IPython.paths module since IPython 4.0. return os.path.join(locate_profile(profile), 'history.sqlite') ``` Signed-off-by: Thomas Kluyver <thomas@kluyver.me.uk>

File last commit:

r21145:785b4adf
r24226:d77d07c9
Show More
traitlets.py
7 lines | 168 B | text/x-python | PythonLexer
from __future__ import absolute_import
from warnings import warn
warn("IPython.utils.traitlets has moved to a top-level traitlets package.")
from traitlets import *