view tests/sitecustomize.py @ 21569:c5afb07c33d3 stable

alias: handle shlex error in command aliases No command should fail with ValueError just because there is unparseable alias definition. It returns 1 like other badalias handlers, but should be changed to 255 in a later version because we use 255 for general command error.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 May 2014 13:06:16 +0900
parents 0b21ae0a2366
children 031947baf4d0
line wrap: on
line source

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass