Mercurial > public > mercurial-scm > hg-stable
diff tests/logexceptions.py @ 53031:e705fec4a03f stable
branching: merging with 7.0 changes
Since 6.9.3 was made after 7.0rc0 we need to deal with more branching than
usual.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 05 Mar 2025 23:02:19 +0100 |
parents | 3e84e001b6c1 |
children |
line wrap: on
line diff
--- a/tests/logexceptions.py Wed Mar 05 22:33:11 2025 +0100 +++ b/tests/logexceptions.py Wed Mar 05 23:02:19 2025 +0100 @@ -49,7 +49,7 @@ frame = tb.tb_frame try: - with open(inspect.getsourcefile(tb), 'r') as fh: + with open(inspect.getsourcefile(tb)) as fh: hgline = fh.readlines()[frame.f_lineno - 1].strip() except (IndexError, OSError): pass