diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-02-02 03:18:22 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-02-02 03:18:22 +0700 |
commit | 9a340af37ec595783f3c87a9347b4f8ea6713344 (patch) | |
tree | 3b7d92106e1902c018880e543ec1019587a5f6f2 /youtube_dl/compat.py | |
parent | 3c3bceb41d37d631497f3d5eb6866ca54c98dcb9 (diff) |
[compat] Mute some F821 under python 3
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r-- | youtube_dl/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |