Signed-off-by: Dan Mick <dan.mick@inktank.com>
return 0
-
-def descsort(sh1, sh2):
- """
- sort descriptors by prefixes, defined as the concatenation of all simple
- strings in the descriptor; this works out to just the leading strings.
- """
- return cmp(concise_sig(sh1['sig']), concise_sig(sh2['sig']))
-
-
DONTSPLIT = string.letters + '{[<>]}'
def wrap(s, width, indent):
s += d.helpstr()
return s
+def descsort(sh1, sh2):
+ """
+ sort descriptors by prefixes, defined as the concatenation of all simple
+ strings in the descriptor; this works out to just the leading strings.
+ """
+ return cmp(concise_sig(sh1['sig']), concise_sig(sh2['sig']))
+
def parse_funcsig(sig):
"""
parse a single descriptor (array of strings or dicts) into a