Commit a86b4989 authored by Romain Bignon's avatar Romain Bignon

paypal: fix compatibility with python2

parent 0169a26b
Pipeline #2713 failed with stages
......@@ -21,9 +21,8 @@ from ast import literal_eval
from decimal import Decimal, ROUND_DOWN
import json
import re
import urllib.parse
from import unicode
from import unicode, unquote
from import Account
from weboob.capabilities.base import NotAvailable
from weboob.exceptions import BrowserUnavailable, ActionNeeded
......@@ -86,7 +85,7 @@ class LoginPage(HTMLPage):
for r in raw:
r = r.split("=")
k = r[0]
v = urllib.parse.unquote(r[1])
v = unquote(r[1])
if k not in ["ads_token_js", "_sessionID", "_csrf"]:
tokens["key"] = k
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment