##// END OF EJS Templates
Creates newlines in the %%timeit documentation (#14556)...
Creates newlines in the %%timeit documentation (#14556) Fixes #13873 by adding empty lines after semicolons, rendering blocks correctly. Fixes the issue pointed out by this [comment](https://github.com/ipython/ipython/issues/13873#issuecomment-1363442055) Fixes unintentional bolding in the later part of the same section, by removing indentation: ![image](https://github.com/user-attachments/assets/0200ff8a-6a0d-4250-85d6-ddb94c04725c)

File last commit:

r23700:8e864e7c
r28913:e63a316e merge
Show More
ulinecache.py
21 lines | 684 B | text/x-python | PythonLexer
"""
This module has been deprecated since IPython 6.0.
Wrapper around linecache which decodes files to unicode according to PEP 263.
"""
import functools
import linecache
from warnings import warn
getline = linecache.getline
# getlines has to be looked up at runtime, because doctests monkeypatch it.
@functools.wraps(linecache.getlines)
def getlines(filename, module_globals=None):
"""
Deprecated since IPython 6.0
"""
warn(("`IPython.utils.ulinecache.getlines` is deprecated since"
" IPython 6.0 and will be removed in future versions."),
DeprecationWarning, stacklevel=2)
return linecache.getlines(filename, module_globals=module_globals)