[compat] flake8
authorSergey M․ <dstftw@gmail.com>
Tue, 6 Apr 2021 07:15:13 +0000 (14:15 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 6 Apr 2021 07:15:13 +0000 (14:15 +0700)
youtube_dl/compat.py

index 8a5262dc8e3dec532141652c5039926b275caf1e..566e9d5ecd75fb858bb133d7ad66b75c0de31e9b 100644 (file)
@@ -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: