Revision 1187
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_func.py | ||
---|---|---|
59 | 59 |
items = list(items) |
60 | 60 |
items.sort() |
61 | 61 |
try: return items[0][1] # value of lowest-numbered item |
62 |
except IndexError, e: raise SyntaxException(e)
|
|
62 |
except IndexError: return None # input got removed by e.g. SyntaxException
|
|
63 | 63 |
funcs['_alt'] = _alt |
64 | 64 |
|
65 | 65 |
def _merge(items): |
Also available in: Unified diff
xml_func.py: _alt: On empty input, return None instead of raising SyntaxException because empty input should be OK