aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-20 20:33:49 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-23 21:55:15 +0600
commit67dda51722f1ce12b956782d43047b3fff390115 (patch)
treeffa0aa90945651ce8ca8ab102095797d8ada5bc8 /youtube_dl/compat.py
parente4c4bcf36f4e0bb575526701f852152f4fd976c4 (diff)
Rename compat_urllib_request_Request to sanitized_Request and move to utils
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r--youtube_dl/compat.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py
index 4e3de7f51..a3e85264a 100644
--- a/youtube_dl/compat.py
+++ b/youtube_dl/compat.py
@@ -198,14 +198,6 @@ except ImportError: # Python < 3.4
return compat_urllib_response.addinfourl(io.BytesIO(data), headers, url)
-
-# Prepend protocol-less URLs with `http:` scheme in order to mitigate the number of
-# unwanted failures due to missing protocol
-def compat_urllib_request_Request(url, *args, **kwargs):
- return compat_urllib_request.Request(
- 'http:%s' % url if url.startswith('//') else url, *args, **kwargs)
-
-
try:
compat_basestring = basestring # Python 2
except NameError: