Remove use of the future package

It was providing Python 2 compatibility.
This commit is contained in:
Chris Mayo 2020-04-15 19:49:16 +01:00
parent d80a075372
commit f5e7f3a382
9 changed files with 1 additions and 13 deletions

View file

@ -25,8 +25,6 @@ except ImportError:
# Python 3
from io import StringIO
from builtins import bytes
from .. import log, LOG_CHECK, LinkCheckerError, mimeutil
from . import proxysupport, httpurl, internpaturl, get_index_html
from .const import WARN_FTP_MISSING_SLASH

View file

@ -40,7 +40,6 @@ import socket
import select
from io import BytesIO
from builtins import str as str_text
from future.utils import python_2_unicode_compatible
from . import absolute_url, get_url_from
from .. import (log, LOG_CHECK,
@ -82,7 +81,6 @@ def url_norm (url, encoding):
raise LinkCheckerError(msg)
@python_2_unicode_compatible
class UrlBase (object):
"""An URL with additional information like validity etc."""

View file

@ -22,7 +22,6 @@ except ImportError: # Python 2
from ConfigParser import RawConfigParser
import os
from .. import LinkCheckerError, get_link_pat, LOG_CHECK, log, fileutil, plugins, logconf
from builtins import str
def read_multiline (value):

View file

@ -3,6 +3,5 @@ beautifulsoup4
requests >= 2.4
pyxdg
dnspython
future
# optional:
argcomplete

View file

@ -409,7 +409,6 @@ setup(
'dnspython',
'beautifulsoup4',
'pyxdg',
'future',
],
# Commented out since they are untested and not officially supported.
# See also doc/install.txt for more detailed dependency documentation.

View file

@ -22,8 +22,6 @@ import unittest
import linkcheck.containers
from builtins import range
class TestLFUCache (unittest.TestCase):
"""Test LFU cache implementation."""

View file

@ -20,8 +20,6 @@ Test dummy object.
import unittest
from builtins import str
import linkcheck.dummy

View file

@ -19,9 +19,9 @@ Test update check functionality.
"""
import unittest
from tests import need_network
import linkcheck.updater
from builtins import str
class TestUpdater (unittest.TestCase):

View file

@ -30,5 +30,4 @@ deps =
requests >= 2.4
pyxdg
dnspython
future
{[base]deps}