mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
modify encoding with open cookies file
This commit is contained in:
parent
0c0209be22
commit
0ec2a6ee56
@ -1317,7 +1317,7 @@ def load_cookies(cookiefile):
|
||||
cookies = cookiejar.MozillaCookieJar()
|
||||
now = time.time()
|
||||
ignore_discard, ignore_expires = False, False
|
||||
with open(cookiefile, 'r') as f:
|
||||
with open(cookiefile, 'r', encoding='utf-8') as f:
|
||||
for line in f:
|
||||
# last field may be absent, so keep any trailing tab
|
||||
if line.endswith("\n"): line = line[:-1]
|
||||
|
Loading…
Reference in New Issue
Block a user