##// END OF EJS Templates
Make default evaluation run the last AST node only if it is an expression.
Make default evaluation run the last AST node only if it is an expression.

File last commit:

r3456:f38fe81a
r3740:7a0df639
Show More
__init__.py
13 lines | 562 B | text/x-python | PythonLexer
Thomas Spura
Unbundle of all external modules....
r3408 try:
import argparse
# Workaround an argparse bug, FIXED in argparse 1.1.0
if 'RawTextHelpFormatterArgumentDefaultsHelpFormatter' in argparse.__all__:
import itertools
argparse.__all__ = list(itertools.chain( [i for i in argparse.__all__
if i != 'RawTextHelpFormatterArgumentDefaultsHelpFormatter'],
['RawTextHelpFormatter', 'ArgumentDefaultsHelpFormatter']))
argparse.__all__.append('SUPPRESS')
from argparse import *
except ImportError:
from _argparse import *
Thomas Kluyver
Fix up argparse (update bundled version) so IPython starts whether or not argparse is installed system-wide.
r3456 from _argparse import SUPPRESS