diff options
author | Sergey M․ <dstftw@gmail.com> | 2021-04-06 14:15:13 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2021-04-06 14:15:13 +0700 |
commit | 6b315d96bc0b07ddc3abaa7318583775828cce30 (patch) | |
tree | 1f0a02545c1c0cb9d0cce5fd3acc0e2a9fc14146 | |
parent | 25b1287323f5836c9416a8183096adc63809d5ce (diff) |
[compat] flake8
-rw-r--r-- | youtube_dl/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index 8a5262dc8..566e9d5ec 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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: |