Mercurial > public > mercurial-scm > hg-stable
diff mercurial/lsprof.py @ 2509:6350b01d173f
merge with wsgi changes.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 27 Jun 2006 00:10:41 -0700 |
parents | 976b6b2a1613 |
children | 30c40ba10963 |
line wrap: on
line diff
--- a/mercurial/lsprof.py Tue Jun 27 00:09:37 2006 -0700 +++ b/mercurial/lsprof.py Tue Jun 27 00:10:41 2006 -0700 @@ -4,7 +4,13 @@ # small modifications made import sys -from _lsprof import Profiler, profiler_entry, profiler_subentry +try: + from _lsprof import Profiler, profiler_entry, profiler_subentry +except ImportError, inst: + import packagescan + if packagescan.scan_in_progress: + raise packagescan.SkipPackage('_lsprof not available') + raise __all__ = ['profile', 'Stats']