[compat] Add compat_urllib_parse_urlencode and eliminate encode_dict
encode_dict functionality has been improved and moved directly into compat_urllib_parse_urlencode All occurrences of compat_urllib_parse.urlencode throughout the codebase have been replaced by compat_urllib_parse_urlencode Closes #8974
This commit is contained in:
		@@ -5,7 +5,7 @@ import codecs
 | 
			
		||||
import re
 | 
			
		||||
 | 
			
		||||
from .common import InfoExtractor
 | 
			
		||||
from ..compat import compat_urllib_parse
 | 
			
		||||
from ..compat import compat_urllib_parse_urlencode
 | 
			
		||||
from ..utils import (
 | 
			
		||||
    ExtractorError,
 | 
			
		||||
    int_or_none,
 | 
			
		||||
@@ -41,7 +41,7 @@ class TubiTvIE(InfoExtractor):
 | 
			
		||||
            'username': username,
 | 
			
		||||
            'password': password,
 | 
			
		||||
        }
 | 
			
		||||
        payload = compat_urllib_parse.urlencode(form_data).encode('utf-8')
 | 
			
		||||
        payload = compat_urllib_parse_urlencode(form_data).encode('utf-8')
 | 
			
		||||
        request = sanitized_Request(self._LOGIN_URL, payload)
 | 
			
		||||
        request.add_header('Content-Type', 'application/x-www-form-urlencoded')
 | 
			
		||||
        login_page = self._download_webpage(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user