##// END OF EJS Templates
set contentType='application/json'...
set contentType='application/json' instead of skipping straight to headers avoids jQuery's crazy JSONP detection on `=.*??`, which was triggered because it assumed the contentType was unspecified, and thus should be guessed based on content.

File last commit:

r15516:43a46eb6
r18352:8a12dee8
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