aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-09-17 13:53:04 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2017-09-17 13:53:04 +0800
commit4ed2d7b7d1f67e499a46e507d957616e364565ca (patch)
tree66f064c22bea10582fad4d837500375de6e830d5 /youtube_dl/extractor/common.py
parent8251af63a12cd73cf2578c81dbb869232da2592c (diff)
downloadyoutube-dl-4ed2d7b7d1f67e499a46e507d957616e364565ca.zip
youtube-dl-4ed2d7b7d1f67e499a46e507d957616e364565ca.tar.gz
youtube-dl-4ed2d7b7d1f67e499a46e507d957616e364565ca.tar.bz2
Fix flake8 issues after #14225
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 317a9a7..2bbbf8f 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -2452,7 +2452,7 @@ class InfoExtractor(object):
def _set_cookie(self, domain, name, value, expire_time=None, port=None,
path='/', secure=False, discard=False, rest={}, **kwargs):
cookie = compat_cookiejar.Cookie(
- 0, name, value, port, not port is None, domain, True,
+ 0, name, value, port, port is not None, domain, True,
domain.startswith('.'), path, True, secure, expire_time,
discard, None, None, rest)
self._downloader.cookiejar.set_cookie(cookie)