mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 20:37:08 -05:00 
			
		
		
		
	Restore Python 2.6.<6 compatibility (Fixes #1860)
This commit is contained in:
		@@ -547,7 +547,7 @@ def make_HTTPS_handler(opts_no_check_certificate):
 | 
			
		||||
 | 
			
		||||
            def connect(self):
 | 
			
		||||
                sock = socket.create_connection((self.host, self.port), self.timeout)
 | 
			
		||||
                if self._tunnel_host:
 | 
			
		||||
                if getattr(self, '_tunnel_host', False):
 | 
			
		||||
                    self.sock = sock
 | 
			
		||||
                    self._tunnel()
 | 
			
		||||
                try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user