mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 16:44:43 +00:00
Remove use of the future package
It was providing Python 2 compatibility.
This commit is contained in:
parent
d80a075372
commit
f5e7f3a382
9 changed files with 1 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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."""
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -3,6 +3,5 @@ beautifulsoup4
|
|||
requests >= 2.4
|
||||
pyxdg
|
||||
dnspython
|
||||
future
|
||||
# optional:
|
||||
argcomplete
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ import unittest
|
|||
|
||||
import linkcheck.containers
|
||||
|
||||
from builtins import range
|
||||
|
||||
|
||||
class TestLFUCache (unittest.TestCase):
|
||||
"""Test LFU cache implementation."""
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ Test dummy object.
|
|||
|
||||
import unittest
|
||||
|
||||
from builtins import str
|
||||
|
||||
import linkcheck.dummy
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -30,5 +30,4 @@ deps =
|
|||
requests >= 2.4
|
||||
pyxdg
|
||||
dnspython
|
||||
future
|
||||
{[base]deps}
|
||||
|
|
|
|||
Loading…
Reference in a new issue