Skip to content

Commit ee78680

Browse files
committed
cleanup [#20]
1 parent 0d18aae commit ee78680

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

bunq/sdk/client.py

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
import uuid
2-
3-
# Due to compatibility requirements, we are importing a class here.
4-
try:
5-
from json import JSONDecodeError
6-
except ImportError:
7-
from simplejson import JSONDecodeError
2+
from json import JSONDecodeError
3+
from urllib.parse import urlencode
84

95
import requests
106

11-
from bunq.sdk.json import converter
12-
from bunq.sdk import security
137
from bunq.sdk import context
148
from bunq.sdk import exception
15-
16-
try:
17-
from urllib import urlencode
18-
except ImportError:
19-
from urllib.parse import urlencode
9+
from bunq.sdk import security
10+
from bunq.sdk.json import converter
2011

2112

2213
class ApiClient(object):

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# This flag says that the code is written to work on both Python 2 and Python
33
# 3. If at all possible, it is good practice to do this. If you cannot, you
44
# will need to generate wheels for each Python version that you support.
5-
universal=1
5+
universal=0

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,16 @@
5656

5757
# Specify the Python versions you support here. In particular, ensure
5858
# that you indicate whether you support Python 2, Python 3 or both.
59-
'Programming Language :: Python :: 2.7',
6059
'Programming Language :: Python :: 3',
6160
'Programming Language :: Python :: 3.3',
6261
'Programming Language :: Python :: 3.4',
6362
'Programming Language :: Python :: 3.5',
6463
'Programming Language :: Python :: 3.6',
6564
],
6665

66+
# Require Python version equal or more than Python 3.
67+
python_requires='>=3',
68+
6769
# Keywords related to the project
6870
keywords='open-banking sepa bunq finance api payment',
6971

0 commit comments

Comments
 (0)