Explorar o código

[compat] flake8

Sergey M․ %!s(int64=4) %!d(string=hai) anos
pai
achega
6b315d96bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/compat.py

+ 1 - 1
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: