1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

[compat] Mute some F821 under python 3

This commit is contained in:
Sergey M․ 2018-02-02 03:18:22 +07:00
parent 3c3bceb41d
commit 9a340af37e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -2909,8 +2909,8 @@ else:
if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8): if platform.python_implementation() == 'IronPython' and sys.version_info < (2, 7, 8):
class compat_Struct(struct.Struct): class compat_Struct(struct.Struct):
def unpack(self, string): def unpack(self, string):
if not isinstance(string, buffer): if not isinstance(string, buffer): # noqa: F821
string = buffer(string) string = buffer(string) # noqa: F821
return super(compat_Struct, self).unpack(string) return super(compat_Struct, self).unpack(string)
else: else:
compat_Struct = struct.Struct compat_Struct = struct.Struct