view tests/sitecustomize.py @ 14968:b7dbe957585c

util: use safehasattr or getattr instead of hasattr
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 16:04:40 -0500
parents 58128004cca1
children 0b21ae0a2366
line wrap: on
line source

try:
    import coverage
    if hasattr(coverage, 'process_startup'):
        coverage.process_startup()
except ImportError:
    pass