AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit b272a563cb14623d05bec65dea899bf3a99a7129
parent 28cf34e585110611ec7bc219523e9948e865f9da
Author: Solderpunk <solderpunk@sdf.org>
Date:   Sun, 10 May 2020 15:02:24 +0200

Use ansiwrap if available.

Diffstat:
Mav98.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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