Skip to content

Commit

Permalink
python 3 urlparse compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed Aug 1, 2016
1 parent 42d695d commit e749665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions treq/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import time
import base64
import hashlib
import urlparse

from six.moves.urllib.parse import urlparse
from twisted.web.http_headers import Headers
from twisted.python.randbytes import secureRandom
from requests.utils import parse_dict_header
Expand Down Expand Up @@ -63,7 +63,7 @@ def build_digest_authentication_header(agent, **kwargs):
qop = kwargs.get('qop', None)
nonce = kwargs.get('nonce')
opaque = kwargs.get('opaque', None)
path_parsed = urlparse.urlparse(kwargs['path'])
path_parsed = urlparse(kwargs['path'])
actual_path = path_parsed.path

if path_parsed.query:
Expand Down

0 comments on commit e749665

Please sign in to comment.