Skip to content

Commit 1430081

Browse files
committed
* Removes python2 imports
* Bumps `UserAgent` string to 2.0.0.
1 parent 40bbe79 commit 1430081

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

messagebird/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from messagebird.number import Number, NumberList
2727

2828
ENDPOINT = 'https://rest.messagebird.com'
29-
CLIENT_VERSION = '1.4.1'
29+
CLIENT_VERSION = '2.0.0'
3030
PYTHON_VERSION = '%d.%d.%d' % (sys.version_info[0], sys.version_info[1], sys.version_info[2])
3131
USER_AGENT = 'MessageBird/ApiClient/%s Python/%s' % (CLIENT_VERSION, PYTHON_VERSION)
3232
REST_TYPE = 'rest'

messagebird/http_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33

44
from messagebird.serde import json_serialize
55

6-
try:
7-
from urllib.parse import urljoin
8-
except ImportError:
9-
from urlparse import urljoin
6+
from urllib.parse import urljoin
107

118

129
class ResponseFormat(Enum):

messagebird/signed_request.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
import time
55
from collections import OrderedDict
66

7-
try:
8-
from urllib.parse import urlencode
9-
except ImportError:
10-
from urllib import urlencode
7+
from urllib.parse import urlencode
118

129

1310
class SignedRequest:

0 commit comments

Comments
 (0)