[compat] Add Request and HTTPClient compat for redirect
authordirkf <fieldhouse@gmx.net>
Fri, 7 Jul 2023 17:51:38 +0000 (18:51 +0100)
committerdirkf <fieldhouse@gmx.net>
Tue, 18 Jul 2023 09:50:46 +0000 (10:50 +0100)
commit648dc5304cb2476592ff142988b8c62675011fcc
treefa00cc2e3f5c2feda798a160df5ca8f1fd8a846b
parent1720c04dc56fa0d2caa0a455b1acbd569347482e
[compat] Add Request and HTTPClient compat for redirect

* support `method` parameter of `Request.__init__`  (Py 2 and old Py 3)
* support `getcode` method of compat_http_client.HTTPResponse (Py 2)
youtube_dl/compat.py