Use ansiwrap if available.

This commit is contained in:
Solderpunk 2020-05-10 15:02:24 +02:00
parent 28cf34e585
commit b272a563cb
1 changed files with 5 additions and 1 deletions

View File

@ -24,13 +24,17 @@ import socket
import subprocess import subprocess
import sys import sys
import tempfile import tempfile
import textwrap
import urllib.parse import urllib.parse
import ssl import ssl
import sys import sys
import time import time
import webbrowser import webbrowser
try:
import ansiwrap as textwrap
except ModuleNotFoundError:
import textwrap
_VERSION = "0.0.1" _VERSION = "0.0.1"
_MAX_REDIRECTS = 5 _MAX_REDIRECTS = 5