tests/logexceptions.py
changeset 52656 3e84e001b6c1
parent 48875 6000f5b25c9b
--- a/tests/logexceptions.py	Mon Jan 06 01:44:46 2025 -0500
+++ b/tests/logexceptions.py	Tue Jan 07 17:28:46 2025 -0500
@@ -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