Skip to content

Commit 6e8cfa0

Browse files
committed
Add note to docs about missing SSL support in backports currently
1 parent ca225ce commit 6e8cfa0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/standard_library_imports.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,16 @@ follows::
116116
import test.support
117117

118118

119-
The newly exposed ``urllib`` submodules are full backports of those from Py3.x.
119+
The newly exposed ``urllib`` submodules are backports of those from Py3.x.
120120
This means, for example, that ``urllib.parse.unquote()`` now exists and takes
121121
an optional ``encoding`` argument on Py2.x as it does on Py3.x.
122122

123+
**Limitation:** Note that the ``http``-based backports do not currently support
124+
HTTPS (as of 2015-09-11) because the SSL support changed considerably in Python
125+
3.x. If you need HTTPS support, please use this idiom for now::
126+
127+
from future.moves.urllib.request import urlopen
128+
123129
Backports also exist of the following features from Python 3.4:
124130

125131
- ``math.ceil`` returns an int on Py3

0 commit comments

Comments
 (0)