diff --git a/bunq/sdk/client.py b/bunq/sdk/client.py index afb28ec..c9e8764 100644 --- a/bunq/sdk/client.py +++ b/bunq/sdk/client.py @@ -1,22 +1,13 @@ import uuid - -# Due to compatibility requirements, we are importing a class here. -try: - from json import JSONDecodeError -except ImportError: - from simplejson import JSONDecodeError +from json import JSONDecodeError +from urllib.parse import urlencode import requests -from bunq.sdk.json import converter -from bunq.sdk import security from bunq.sdk import context from bunq.sdk import exception - -try: - from urllib import urlencode -except ImportError: - from urllib.parse import urlencode +from bunq.sdk import security +from bunq.sdk.json import converter class ApiClient(object): diff --git a/setup.cfg b/setup.cfg index 79bc678..d645be7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,4 +2,4 @@ # This flag says that the code is written to work on both Python 2 and Python # 3. If at all possible, it is good practice to do this. If you cannot, you # will need to generate wheels for each Python version that you support. -universal=1 +universal=0 diff --git a/setup.py b/setup.py index 0a289b4..d7e9c79 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,6 @@ # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', @@ -64,6 +63,9 @@ 'Programming Language :: Python :: 3.6', ], + # Require Python version equal or more than Python 3. + python_requires='>=3', + # Keywords related to the project keywords='open-banking sepa bunq finance api payment',