Add Request to plyglot

This commit is contained in:
Kovid Goyal 2018-10-03 06:50:03 +05:30
parent 1b5603d3dc
commit f17173e615
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -8,8 +8,8 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from polyglot.builtins import is_py3
if is_py3:
from urllib.request import urlopen # noqa
from urllib.request import urlopen, Request # noqa
from urllib.parse import urlencode # noqa
else:
from urllib import urlencode # noqa
from urllib2 import urlopen # noqa
from urllib2 import urlopen, Request # noqa