mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
Derp. Use compat
This commit is contained in:
+2
-3
@@ -8,12 +8,11 @@ import json
|
||||
import os
|
||||
import unittest
|
||||
import pickle
|
||||
import urlparse
|
||||
|
||||
import requests
|
||||
from requests.auth import HTTPDigestAuth
|
||||
from requests.adapters import HTTPAdapter
|
||||
from requests.compat import str, cookielib, getproxies
|
||||
from requests.compat import str, cookielib, getproxies, urljoin
|
||||
from requests.cookies import cookiejar_from_dict
|
||||
from requests.exceptions import InvalidURL, MissingSchema
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
@@ -30,7 +29,7 @@ HTTPBIN = HTTPBIN.rstrip('/') + '/'
|
||||
|
||||
def httpbin(*suffix):
|
||||
"""Returns url for HTTPBIN resource."""
|
||||
return urlparse.urljoin(HTTPBIN, '/'.join(suffix))
|
||||
return urljoin(HTTPBIN, '/'.join(suffix))
|
||||
|
||||
|
||||
class RequestsTestCase(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user