mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 23:23:46 +02:00
Add Request to plyglot
This commit is contained in:
parent
1b5603d3dc
commit
f17173e615
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue