Rev 34: Make lsprof optional for indexbench imports in http://people.ubuntu.com/~robertc/baz2.0/plugins/index2/trunk
Robert Collins
robertc at robertcollins.net
Mon Jul 14 14:09:03 BST 2008
At http://people.ubuntu.com/~robertc/baz2.0/plugins/index2/trunk
------------------------------------------------------------
revno: 34
revision-id: robertc at robertcollins.net-20080714130856-rr86csw7zcgr3141
parent: robertc at robertcollins.net-20080714122617-k60x1rppqikza01d
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Mon 2008-07-14 23:08:56 +1000
message:
Make lsprof optional for indexbench imports
modified:
indexbench.py indexbench.py-20080702083855-5tju02y79rw7kkzh-1
=== modified file 'indexbench.py'
--- a/indexbench.py 2008-07-08 02:31:13 +0000
+++ b/indexbench.py 2008-07-14 13:08:56 +0000
@@ -14,7 +14,10 @@
from bzrlib.commands import Command
from bzrlib.option import Option, ListOption
from bzrlib.revision import NULL_REVISION
-from bzrlib.lsprof import profile
+try:
+ from bzrlib.lsprof import profile
+except ImportError:
+ pass
use_calltree = True
More information about the bazaar-commits
mailing list