[cleanup] Misc cleanup (#2173)

Authored by: fstirlitz, pukkandan
This commit is contained in:
pukkandan 2022-04-12 05:31:54 +05:30
parent f82711587c
commit e5a998f368
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
13 changed files with 46 additions and 33 deletions

View file

@ -28,6 +28,7 @@ from ..utils import (
# NOTE: network handler related code is temporary thing until network stack overhaul PRs are merged (#2861/#2862)
def add_opener(ydl, handler):
''' Add a handler for opening URLs, like _download_webpage '''
# https://github.com/python/cpython/blob/main/Lib/urllib/request.py#L426