1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00
Files
vcrpy/vcr/_compat.py
Åsmund Grammeltvedt a73da71159 Add Python 2.3 support
This commit also adds the 'six' dependency
2014-03-08 20:01:48 -10:00

10 lines
222 B
Python

try:
import httplib
from urllib2 import urlopen
from urllib import urlencode
except ImportError:
import http.client as httplib
from urllib.request import urlopen
from urllib.parse import urlencode