##// END OF EJS Templates
Revert commit that fixed gh-617 as it broke %run in the Qt console....
Revert commit that fixed gh-617 as it broke %run in the Qt console. Unfortunately b641eb66099e85685d315fb420aab560889fbc48 caused %run to stop working in the Qt console, so for now we must disable it (too close to a release). See gh-617 for further details, and restore once the other issues have been addressed.

File last commit:

r3456:f38fe81a
r4387:fe44943c
Show More
__init__.py
13 lines | 562 B | text/x-python | PythonLexer
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 *
from _argparse import SUPPRESS