PythonCharmers/python-future

urllib.request.urlopen from future.backports doesn't accept data URLs

Open

#442 geöffnet am 18. März 2019

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (327 Forks)batch import
0.20enhancementhelp wanted

Repository-Metriken

Stars
 (1.172 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Passing a data URL (such as "data:text/plain,hello") to urlopen raises a URLError, although this works in both Python 2.7 and Python 3.5. I'm not sure if this was added after Python 3.3 on which the backports code is based according to the source, but according to the 3.3 documentation it seems that it should have worked even in Python 3.3.

Contributor Guide