8000 Fix urlunparse import for python3 · rbarner14/twilio-python@44e1a98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44e1a98

Browse files
committed
Fix urlunparse import for python3
1 parent 9334f18 commit 44e1a98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

twilio/compat/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
try:
66
# python 3
7-
from urllib.parse import urlencode, urlparse, urljoin
7+
from urllib.parse import urlencode, urlparse, urljoin, urlunparse
88
except ImportError:
99
# python 2 backward compatibility
1010
# noinspection PyUnresolvedReferences
1111
from urllib import urlencode
1212
# noinspection PyUnresolvedReferences
13-
from urlparse import urlparse, urljoin
13+
from urlparse import urlparse, urljoin, urlunparse
1414

1515
try:
1616
# python 2

twilio/rest/resources/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import logging
2-
from urlparse import urlunparse
32
import os
43
import platform
54

@@ -9,8 +8,9 @@
98
binary_type,
109
iteritems
1110
)
12-
from ...compat import urlparse
1311
from ...compat import urlencode
12+
from ...compat import urlparse
13+
from ...compat import urlunparse
1414

1515
from ... import __version__
1616
from ...exceptions import TwilioException

0 commit comments

Comments
 (0)
0