Mercurial > hg-stable
diff mercurial/match.py @ 16455:154219f3a6a4
opener: introduce tryread helper
This makes it easier to follow the common pattern "read a file or give
an empty string if it's missing".
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 17 Apr 2012 11:11:59 -0500 |
parents | bd12ef347680 |
children | 9a21fc2c7d32 c17ce7cd5090 |