From 40cc55c0dc18d999cd4d3c1b278d6e120f858ab5 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 26 Apr 2023 18:36:02 -0400 Subject: fix: no need for terminal url except for html report --- coverage/report.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'coverage') diff --git a/coverage/report.py b/coverage/report.py index 1e14eb78..09eed0a8 100644 --- a/coverage/report.py +++ b/coverage/report.py @@ -5,7 +5,6 @@ from __future__ import annotations -import os import sys from typing import Callable, Iterable, Iterator, IO, Optional, Tuple, TYPE_CHECKING @@ -59,12 +58,7 @@ def render_report( try: ret = reporter.report(morfs, outfile=outfile) if file_to_close is not None: - if sys.stdout.isatty(): - file_path = f"file://{os.path.abspath(output_path)}" - print_path = f"\033]8;;{file_path}\a{output_path}\033]8;;\a" - else: - print_path = output_path - msgfn(f"Wrote {reporter.report_type} to {print_path}") + msgfn(f"Wrote {reporter.report_type} to {output_path}") delete_file = False return ret finally: -- cgit v1.2.1