aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPaul Koning <pkoning@equallogic.com>2011-10-28 14:48:38 +0000
committerPaul Koning <pkoning@equallogic.com>2011-10-28 14:48:38 +0000
commit03c3051af409283414a7d14e7a7f596da7aa54de (patch)
treef2b469deed3e078fabdc3fe45e99bcd47858f005 /gdb/python
parente8b9f50888378c3b742fe435da4bd7c99ab20d42 (diff)
downloadgdb-03c3051af409283414a7d14e7a7f596da7aa54de.zip
gdb-03c3051af409283414a7d14e7a7f596da7aa54de.tar.gz
gdb-03c3051af409283414a7d14e7a7f596da7aa54de.tar.bz2
* python/lib/gdb/types.py (deep_items): Rename from deepitems.
* NEWS: Mention deep_items.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/lib/gdb/types.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/lib/gdb/types.py b/gdb/python/lib/gdb/types.py
index 9a9b245..c0aa422 100644
--- a/gdb/python/lib/gdb/types.py
+++ b/gdb/python/lib/gdb/types.py
@@ -91,7 +91,7 @@ def make_enum_dict(enum_type):
return enum_dict
-def deepitems (type_):
+def deep_items (type_):
"""Return an iterator that recursively traverses anonymous fields.
Arguments:
@@ -107,5 +107,5 @@ def deepitems (type_):
if k:
yield k, v
else:
- for i in deepitems (v.type):
+ for i in deep_items (v.type):
yield i