mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[compat] Mute some F821 under python 3
This commit is contained in:
		| @@ -2909,8 +2909,8 @@ else: | ||||
|     if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8): | ||||
|         class compat_Struct(struct.Struct): | ||||
|             def unpack(self, string): | ||||
|                 if not isinstance(string, buffer): | ||||
|                     string = buffer(string) | ||||
|                 if not isinstance(string, buffer):  # noqa: F821 | ||||
|                     string = buffer(string)  # noqa: F821 | ||||
|                 return super(compat_Struct, self).unpack(string) | ||||
|     else: | ||||
|         compat_Struct = struct.Struct | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․