mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 02:01:50 +00:00
[compat] flake8
This commit is contained in:
parent
25b1287323
commit
6b315d96bc
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ except ImportError: # Python 2
|
|||
if sys.version_info[0] == 2:
|
||||
class compat_SimpleCookie(compat_cookies.SimpleCookie):
|
||||
def load(self, rawdata):
|
||||
if isinstance(rawdata, unicode):
|
||||
if isinstance(rawdata, compat_str):
|
||||
rawdata = str(rawdata)
|
||||
return super(compat_SimpleCookie, self).load(rawdata)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue