Skip to content

Commit f1e3b2c

Browse files
author
Josh Mervine
committed
tweaks for travis and py3.x
1 parent 68cae67 commit f1e3b2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

maxcdn/maxcdn.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
from requests_oauthlib import OAuth1Session as OAuth1
22
from os import environ as env
3-
import urlparse
3+
4+
try:
5+
import urlparse
6+
except ImportError: # handly python 3.x
7+
from urllib import parse as urlparse
48

59
class MaxCDN(object):
610
def __init__(self, alias, key, secret, server="rws.maxcdn.com", **kwargs):

0 commit comments

Comments
 (0)