1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

[fixup] remove unnecessary commented function

This commit is contained in:
Filippo Valsorda 2013-10-05 16:38:37 -04:00
parent 00fcc17aee
commit 8932a66e49

View File

@ -34,12 +34,6 @@ class FakeYDL(YoutubeDL):
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