summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBModule.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBModule.i')
-rw-r--r--lldb/scripts/Python/interface/SBModule.i4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i
index d66e169f0d9..49e032d8b82 100644
--- a/lldb/scripts/Python/interface/SBModule.i
+++ b/lldb/scripts/Python/interface/SBModule.i
@@ -320,12 +320,10 @@ public:
if key < count:
return self.sbmodule.GetSectionAtIndex(key)
elif type(key) is str:
- matches = []
for idx in range(count):
section = self.sbmodule.GetSectionAtIndex(idx)
if section.name == key:
- matches.append(section)
- return matches
+ return section
elif isinstance(key, self.re_compile_type):
matches = []
for idx in range(count):
OpenPOWER on IntegriCloud