##// 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:

r21337:03608cd1
r24226:d77d07c9
Show More
pickleutil.py
5 lines | 130 B | text/x-python | PythonLexer
Min RK
shim IPython.utils.pickleutil
r21069 from warnings import warn
Min RK
ipython_kernel is now ipykernel
r21337 warn("IPython.utils.pickleutil has moved to ipykernel.pickleutil")
Min RK
shim IPython.utils.pickleutil
r21069
Min RK
ipython_kernel is now ipykernel
r21337 from ipykernel.pickleutil import *