From 04e0933d36a31320602a773f29afab930406e695 Mon Sep 17 00:00:00 2001 From: hackrush Date: Sat, 22 Sep 2018 01:58:24 +0530 Subject: [PATCH] Fixes report bug on python 3 --- lbrynet/daemon/Daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index 84dc631aa..7e0b91b6b 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -3385,7 +3385,7 @@ class Daemon(AuthJSONRPCServer): def loggly_time_string(dt): formatted_dt = dt.strftime("%Y-%m-%dT%H:%M:%S") milliseconds = str(round(dt.microsecond * (10.0 ** -5), 3)) - return urllib.quote_plus(formatted_dt + milliseconds + "Z") + return urllib.parse.quote(formatted_dt + milliseconds + "Z") def get_loggly_query_string(installation_id): @@ -3397,7 +3397,7 @@ def get_loggly_query_string(installation_id): 'from': loggly_time_string(yesterday), 'to': loggly_time_string(now) } - data = urllib.urlencode(params) + data = urllib.parse.urlencode(params) return base_loggly_search_url + data