##// END OF EJS Templates
Add a few more fixes to cell/line input code, switch approaches....
Add a few more fixes to cell/line input code, switch approaches. The pure regexp approach failed in more complex cases, so I've gone for a hybrid with some manual string logic and also regex. There are a lot more tests now that pass, so I'm starting to trust this code.

File last commit:

r4669:45cf1867
r6981:03d77d1e
Show More
__init__.py
11 lines | 319 B | text/x-python | PythonLexer
try:
import argparse
# don't use system argparse if older than 1.1:
if argparse.__version__ < '1.1':
raise ImportError
else:
from argparse import *
from argparse import SUPPRESS
except (ImportError, AttributeError):
from _argparse import *
from _argparse import SUPPRESS