Skip to content

Commit 236715a

Browse files
committed
Fix urlparse import for python2
1 parent d389122 commit 236715a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

alertaclient/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from netrc import netrc
66

77
try:
8-
from urllib.parse import urlencode, urlparse
8+
from urllib.parse import urlparse
99
except ImportError:
10-
from urllib import urlencode, urlparse
10+
from urlparse import urlparse
1111

1212
NETRC_FILE = os.path.join(os.environ['HOME'], ".netrc")
1313

0 commit comments

Comments
 (0)