From 2a9ab407394d60a9e9c876b4e2d3361cf02cd764 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Mon, 21 Jul 2025 14:15:59 +0200 Subject: [PATCH] black --- kglobe.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kglobe.py b/kglobe.py index f1959ba..642c9e9 100644 --- a/kglobe.py +++ b/kglobe.py @@ -62,7 +62,7 @@ def traceroute(target: str) -> list[tuple[int, int]]: ) hops: list[str] = re.findall(r"\n\s*\d+\s+([\d.]+)", result.stdout) - coords: list[tuple[int,int]] = [] + coords: list[tuple[int, int]] = [] for ip in hops: try: response: dict = requests.get(f"http://ip-api.com/json/{ip}").json() @@ -110,7 +110,7 @@ def main(): # Convert to 3D coordinates points_3d = [latlon_to_xyz(lat, lon) for lat, lon in locations] - pl : pv.Plotter = pv.Plotter(off_screen=(not args.external)) + pl: pv.Plotter = pv.Plotter(off_screen=(not args.external)) pl.add_mesh(globe, color="tan", smooth_shading=True, texture=tex, show_edges=False) for pt in points_3d: @@ -123,6 +123,7 @@ def main(): kitty.hide_cursor() y, x = kitty.get_position() + print("\n" * 25, end="") try: