8000 Merge pull request #40 from twilio/remove-pyjwt · ssharpy/twilio-python@32211d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32211d6

Browse files
committed
Merge pull request twilio#40 from twilio/remove-pyjwt
Remove pyjwt
2 parents b335ea1 + 3a58b52 commit 32211d6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
six
22
httplib2
33
socksipy-branch
4-
pyjwt

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414
# You need to have the setuptools module installed. Try reading the setuptools
1515
# documentation: http://pypi.python.org/pypi/setuptools
16-
REQUIRES = ["httplib2 >= 0.7", "six", "pytz", "pyjwt"]
16+
REQUIRES = ["httplib2 >= 0.7", "six", "pytz"]
1717

1818
if sys.version_info < (2, 6):
1919
REQUIRES.append('simplejson')

twilio/access_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import time
2-
import jwt
2+
from twilio import jwt
33

44

55
class IpMessagingGrant(object):
@@ -91,4 +91,4 @@ def to_jwt(self, algorithm='HS256'):
9191
algorithm=algorithm)
9292

9393
def __str__(self):
94-
return self.to_jwt().decode('utf-8')
94+
return self.to_jwt()

0 commit comments

Comments
 (0)
0