##// END OF EJS Templates
Fix regression in embed() from pull-request #2096....
Fix regression in embed() from pull-request #2096. With certain sets of arguments `compile_flags` might be left as `None`. This caused IPython to internally raise a TypeError when it tried to do a bitwise or between `shell.compile.flags` and `PyCF_ONLY_AST` in `CachingCompiler.ast_parse`. The regression was introduced in: b70ac12 embed(): Default to the future compile flags of the calling frame.

File last commit:

r7721:5462c7ef
r8130:89b4dd76
Show More
display.py
17 lines | 676 B | text/x-python | PythonLexer
"""Public API for display tools in IPython.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.core.display import *
from IPython.core.displaypub import *
from IPython.lib.display import *