X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fcompat.py;h=4a611f183408ce224404c2fce360ee4d50792dac;hb=8c73ef37b687a821e1a8fc81e72ba9e75fa83a2f;hp=27ece2d294cec8e5c816f7c57fef320404d9103f;hpb=65220c3bd6bfcb9023af904634ce1e76592cfe3e;p=youtube-dl.git diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 27ece2d29..4a611f183 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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