Silly me! There was a closing ) missing from one of the lines - and Python complained about syntax errors on the next line. It being a Friday afternoon made the rest
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@165420 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/scripts/Python/python-extensions.swig b/scripts/Python/python-extensions.swig
index 050af3a..19868fb 100644
--- a/scripts/Python/python-extensions.swig
+++ b/scripts/Python/python-extensions.swig
@@ -540,7 +540,7 @@
if type(key) is int:
return value(self.sbvalue.GetValueForExpressionPath("[%i]" % key))
if type(key) is value:
- return value(self.sbvalue.GetValueForExpressionPath("[%i]" % int(key))
+ return value(self.sbvalue.GetValueForExpressionPath("[%i]" % int(key)))
raise TypeError("No array item of type %s" % str(type(key)))
def __getattr__(self, name):