diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-08 21:39:34 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-04-08 21:39:34 +0800 |
commit | 0a1603634bcf799eeb769d95b6e716e66123b77f (patch) | |
tree | e15605172eab5f823f4743713ce23003fb4590c8 /youtube_dl/utils.py | |
parent | a662163fd5b3c9b1221b8aeaf54ed9083af8574f (diff) |
[utils] Remove url_infer_protocol
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index f3b8d9f81..52f0dd09a 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1711,17 +1711,6 @@ def determine_protocol(info_dict): return compat_urllib_parse_urlparse(url).scheme -def url_infer_protocol(ref_url, target_url): - """ Infer protocol for protocol independent target urls """ - parsed_target_url = list(compat_urllib_parse_urlparse(target_url)) - if parsed_target_url[0]: - return target_url - - parsed_target_url[0] = compat_urllib_parse_urlparse(ref_url).scheme - - return compat_urlparse.urlunparse(parsed_target_url) - - def render_table(header_row, data): """ Render a list of rows, each as a list of values """ table = [header_row] + data |