aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkarel <5636152+karel@users.noreply.github.com>2019-11-18 17:57:17 +0200
committerSebastian Koslowski <sebastian.koslowski@gmail.com>2019-11-18 19:43:23 +0100
commitc86dd3515ceebe361f19d027d95b661e5e7dc432 (patch)
treeddf12900528c114c110219e185890ce5bbb27cb9
parentchange rounding method to `lround` (diff)
downloadgnuradio-c86dd3515ceebe361f19d027d95b661e5e7dc432.tar.xz
gnuradio-c86dd3515ceebe361f19d027d95b661e5e7dc432.zip
grc: remove deprecated encoding argument from json.loads
-rw-r--r--grc/core/utils/extract_docs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/utils/extract_docs.py b/grc/core/utils/extract_docs.py
index 9daac3f36..606ec690f 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