mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-30 02:01:05 +00:00
[fixup] remove unnecessary commented function
This commit is contained in:
parent
00fcc17aee
commit
8932a66e49
1 changed files with 0 additions and 6 deletions
|
@ -34,12 +34,6 @@ def trouble(self, s, tb=None):
|
|||
raise Exception(s)
|
||||
def download(self, x):
|
||||
self.result.append(x)
|
||||
# def expect_warning(self, regex):
|
||||
# # Silence an expected warning matching a regex
|
||||
# def report_warning(self, message):
|
||||
# if re.match(regex, message): return
|
||||
# super(FakeYDL, self).report_warning(regex)
|
||||
# self.report_warning = types.MethodType(report_warning, self)
|
||||
def expect_warning(self, regex):
|
||||
# Silence an expected warning matching a regex
|
||||
old_report_warning = self.report_warning
|
||||
|
|
Loading…
Reference in a new issue