Mercurial > hg
diff doc/hgmanpage.py @ 27364:ad1cc1435b13
parsers: simplify error logic in compute_phases_map_sets
Since Py_XDECREF and free both accept NULL pointers, we can get by
with just two exit paths: one for success, and one for error.
This considerably simplifies reasoning about the possible ways to
exit from this function.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 14 Dec 2015 10:47:24 -0800 |
parents | 1aee2ab0f902 |
children | cd5e7195e441 |