1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-06 21:17:11 +01:00

[compat] flake8

This commit is contained in:
Sergey M․ 2021-04-06 14:15:13 +07:00
parent 25b1287323
commit 6b315d96bc
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -76,7 +76,7 @@ except ImportError: # Python 2
if sys.version_info[0] == 2: if sys.version_info[0] == 2:
class compat_SimpleCookie(compat_cookies.SimpleCookie): class compat_SimpleCookie(compat_cookies.SimpleCookie):
def load(self, rawdata): def load(self, rawdata):
if isinstance(rawdata, unicode): if isinstance(rawdata, compat_str):
rawdata = str(rawdata) rawdata = str(rawdata)
return super(compat_SimpleCookie, self).load(rawdata) return super(compat_SimpleCookie, self).load(rawdata)
else: else: