__init__.py
11 lines
| 319 B
| text/x-python
|
PythonLexer
Thomas Spura
|
r3408 | try: | ||
import argparse | ||||
MinRK
|
r4669 | # 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): | ||||
Thomas Spura
|
r3408 | from _argparse import * | ||
Thomas Kluyver
|
r3456 | from _argparse import SUPPRESS | ||