##// END OF EJS Templates
Backport PR #2799: Exit code...
Backport PR #2799: Exit code Correct the exit code to be a simple value, rather than two or three separate values stuffed into a single integer. Closes issue #2794. My reading of the [Windows docs](http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/exit.mspx?mfr=true) is that the test I've added should work on Windows as well.

File last commit:

r4669:45cf1867
r9860:f1848887
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