projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c3bceb
)
[compat] Mute some F821 under python 3
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 Feb 2018 20:18:22 +0000
(
03:18
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 Feb 2018 20:18:22 +0000
(
03:18
+0700)
youtube_dl/compat.py
patch
|
blob
|
history
diff --git
a/youtube_dl/compat.py
b/youtube_dl/compat.py
index 27ece2d294cec8e5c816f7c57fef320404d9103f..4a611f183408ce224404c2fce360ee4d50792dac 100644
(file)
--- 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