From c86dd3515ceebe361f19d027d95b661e5e7dc432 Mon Sep 17 00:00:00 2001 From: karel <5636152+karel@users.noreply.github.com> Date: Mon, 18 Nov 2019 17:57:17 +0200 Subject: grc: remove deprecated encoding argument from json.loads --- grc/core/utils/extract_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grc/core/utils/extract_docs.py') diff --git a/grc/core/utils/extract_docs.py b/grc/core/utils/extract_docs.py index 9daac3f361..606ec690f6 100644 --- a/grc/core/utils/extract_docs.py +++ b/grc/core/utils/extract_docs.py @@ -198,7 +198,7 @@ class SubprocessLoader(object): """ Receive response from worker's stdout """ for line in iter(self._worker.stdout.readline, ''): try: - key, cmd, args = json.loads(line.decode('utf-8'), encoding='utf-8') + key, cmd, args = json.loads(line.decode('utf-8')) if key != self.AUTH_CODE: raise ValueError('Got wrong auth code') return cmd, args @@ -268,7 +268,7 @@ def worker_main(): # flush out to signal the main process we are ready for new commands sys.stdout.flush() for line in iter(sys.stdin.readline, ''): - code, cmd, args = json.loads(line, encoding='utf-8') + code, cmd, args = json.loads(line) try: if cmd == 'query': key, imports, make = args -- cgit v1.2.3