Mercurial > hg
view rust/Cargo.toml @ 45863:68aedad4c11c
pure: guard against empty blocks
If blocks is empty, we append `None` to the returned list, which is
incorrect.
This subtle issue was caught by pytype, which correctly identified
the return value as List[Optional[Tuple]] because of this possibility.
Differential Revision: https://phab.mercurial-scm.org/D9279
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 07 Nov 2020 16:45:58 -0800 |
parents | cf04f62d1579 |
children | 34e0670caf46 |
line wrap: on
line source
[workspace] members = ["hg-core", "hg-cpython", "rhg"] exclude = ["chg", "hgcli"]