##// END OF EJS Templates
FileLink: escape HTML unsafe characters from path...
FileLink: escape HTML unsafe characters from path path could contain HTML unsafe characters such as &, ', " or even < and > on Unix, so they should be escaped before putting it into HTML code both as text and the href attribute.

File last commit:

r15516:43a46eb6
r24230:4fbe14d8
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called