diff --git a/README.rst b/README.rst index 13a57968..c9765dfb 100644 --- a/README.rst +++ b/README.rst @@ -45,11 +45,10 @@ Requirements pyqode.core depends on the following libraries: -- Python 2 (**>=2.7**) or Python 3 (**>= 3.2**) +- Python 3 (**>= 3.2**) - PyQt5 or PyQt4 or PySide - pygments - pyqode.qt -- future - qtawesome (optional) @@ -91,8 +90,6 @@ We test the following combinations on Travis-CI: +--------------------------+---------+---------+ | | PyQt4 | PyQt5 | +==========================+=========+=========+ -| GNU/Linux - Python 2.7 | yes | no | -+--------------------------+---------+---------+ | GNU/Linux - Python 3.4 | yes | yes | +--------------------------+---------+---------+ diff --git a/examples/notepad/notepad/main_window.py b/examples/notepad/notepad/main_window.py index 8ae08461..d19fb10d 100644 --- a/examples/notepad/notepad/main_window.py +++ b/examples/notepad/notepad/main_window.py @@ -2,7 +2,6 @@ """ This module contains the main window implementation. """ -from __future__ import print_function import weakref import mimetypes diff --git a/pyqodeng/core/api/code_edit.py b/pyqodeng/core/api/code_edit.py index 72f20365..5bce2c65 100644 --- a/pyqodeng/core/api/code_edit.py +++ b/pyqodeng/core/api/code_edit.py @@ -1,7 +1,6 @@ """ This module contains the base code editor widget. """ -from __future__ import print_function import os import sys import logging diff --git a/pyqodeng/core/api/folding.py b/pyqodeng/core/api/folding.py index 3319de2b..d19f7cb9 100644 --- a/pyqodeng/core/api/folding.py +++ b/pyqodeng/core/api/folding.py @@ -2,7 +2,6 @@ This module contains the code folding API. """ -from __future__ import print_function import logging import sys from pyqodeng.core.api.utils import TextBlockHelper diff --git a/pyqodeng/core/cache.py b/pyqodeng/core/cache.py index ba6907a9..e6565e68 100644 --- a/pyqodeng/core/cache.py +++ b/pyqodeng/core/cache.py @@ -22,13 +22,6 @@ import logging from qtpy import QtCore -try: - from future.builtins import open - from future.builtins import str -except: - pass # python 3.2 not supported - - class Cache: """ Provides an easy acces to the cache by exposing some wrapper properties diff --git a/pyqodeng/core/managers/file.py b/pyqodeng/core/managers/file.py index 70e715ed..f9969e79 100644 --- a/pyqodeng/core/managers/file.py +++ b/pyqodeng/core/managers/file.py @@ -2,11 +2,6 @@ This module contains the file helper implementation """ -try: - from future.builtins import open - from future.builtins import str -except: - pass # python 3.2 not supported import locale import logging import mimetypes diff --git a/setup.py b/setup.py index 3b5b080c..3fd15c59 100644 --- a/setup.py +++ b/setup.py @@ -77,7 +77,7 @@ def readme(): author_email='colin.duquesnoy@gmail.com', description=DESCRIPTION, long_description=readme(), - install_requires=[pygments_req, 'qtpy>=2.2.1', 'future', "PySide6-Essentials"], + install_requires=[pygments_req, 'qtpy>=2.2.1', "PySide6-Essentials"], tests_require=['pytest-xdist', 'pytest-cov', 'pytest-pep8', 'pytest'], entry_points={ 'console_scripts': [