aboutsummaryrefslogtreecommitdiff
path: root/bestflags/flags_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'bestflags/flags_util.py')
-rw-r--r--bestflags/flags_util.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bestflags/flags_util.py b/bestflags/flags_util.py
index 23decafd..ae19a60b 100644
--- a/bestflags/flags_util.py
+++ b/bestflags/flags_util.py
@@ -15,7 +15,10 @@ from flags import Flag
def ClimbNext(flags_dict, climb_spec):
- """Get the flags who are different from flags_dict by climb_spec.
+ """Get the flags that are different from |flags_dict| by |climb_spec|.
+
+ Given a set of flags, |flags_dict|, return a new set of flags that are
+ adjacent along the flag spec |climb_spec|.
An example flags_dict is {foo=[1-9]:foo=5, bar=[1-5]:bar=2} and climb_spec is
bar=[1-5]. This method changes the flag that contains the spec bar=[1-5]. The
@@ -31,7 +34,7 @@ def ClimbNext(flags_dict, climb_spec):
fillable value. An example of a spec is "foo[0-9]".
Returns:
- Dictionaries of neighbor flags.
+ List of dictionaries of neighbor flags.
"""
# This method searches for a pattern [start-end] in the spec. If the spec