Skip to content

Commit

Permalink
[compat] Mute some F821 under python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 1, 2018
1 parent 3c3bceb commit 9a340af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2909,8 +2909,8 @@ def __init__(self, fmt):
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
Expand Down

0 comments on commit 9a340af

Please sign in to comment.