From b272a563cb14623d05bec65dea899bf3a99a7129 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 10 May 2020 15:02:24 +0200 Subject: [PATCH] Use ansiwrap if available. --- av98.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/av98.py b/av98.py index 1823a0f..c4c0694 100755 --- a/av98.py +++ b/av98.py @@ -24,13 +24,17 @@ import socket import subprocess import sys import tempfile -import textwrap import urllib.parse import ssl import sys import time import webbrowser +try: + import ansiwrap as textwrap +except ModuleNotFoundError: + import textwrap + _VERSION = "0.0.1" _MAX_REDIRECTS = 5