##// END OF EJS Templates
Fix bug where 'if 1:' was being added to comment-only code....
Fix bug where 'if 1:' was being added to comment-only code. Found by trying to paste and run this example: http://matplotlib.sourceforge.net/examples/api/collections_demo.html that happened to have indented, comment-only lines of the type: code() # comment code() In these cases, we should *not* try to prepend 'if 1:' to the user's code since that comment by itself isn't executable, and it will cause a compiler IndentationError.
Fernando Perez -
r2979:63d38bdf
Show More
Name Size Modified Last Commit Author
/ IPython / core
tests
__init__.py Loading ...
alias.py Loading ...
application.py Loading ...
autocall.py Loading ...
builtin_trap.py Loading ...
completer.py Loading ...
completerlib.py Loading ...
crashhandler.py Loading ...
debugger.py Loading ...
display_trap.py Loading ...
displayhook.py Loading ...
error.py Loading ...
excolors.py Loading ...
extensions.py Loading ...
fakemodule.py Loading ...
history.py Loading ...
hooks.py Loading ...
inputlist.py Loading ...
inputsplitter.py Loading ...
interactiveshell.py Loading ...
ipapi.py Loading ...
logger.py Loading ...
macro.py Loading ...
magic.py Loading ...
oinspect.py Loading ...
page.py Loading ...
payload.py Loading ...
payloadpage.py Loading ...
plugin.py Loading ...
prefilter.py Loading ...
prompts.py Loading ...
quitter.py Loading ...
release.py Loading ...
shadowns.py Loading ...
splitinput.py Loading ...
ultratb.py Loading ...
usage.py Loading ...