mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[fixup] remove unnecessary commented function
This commit is contained in:
		| @@ -34,12 +34,6 @@ class FakeYDL(YoutubeDL): | |||||||
|         raise Exception(s) |         raise Exception(s) | ||||||
|     def download(self, x): |     def download(self, x): | ||||||
|         self.result.append(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): |     def expect_warning(self, regex): | ||||||
|         # Silence an expected warning matching a regex |         # Silence an expected warning matching a regex | ||||||
|         old_report_warning = self.report_warning |         old_report_warning = self.report_warning | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Filippo Valsorda
					Filippo Valsorda