You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/06 23:30:36 UTC
svn commit: r1864572 - /comdev/reporter.apache.org/trunk/scripts/pdata.py
Author: humbedooh
Date: Tue Aug 6 23:30:36 2019
New Revision: 1864572
URL: http://svn.apache.org/viewvc?rev=1864572&view=rev
Log:
test for bytestring
Modified:
comdev/reporter.apache.org/trunk/scripts/pdata.py
Modified: comdev/reporter.apache.org/trunk/scripts/pdata.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/pdata.py?rev=1864572&r1=1864571&r2=1864572&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/pdata.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/pdata.py Tue Aug 6 23:30:36 2019
@@ -379,6 +379,8 @@ def generate(user, project, runkibble):
if jdata and jdata[2]:
cmd += tuple(jdata[2])
txt = subprocess.check_output(cmd, env = xenv)
+ if type(txt) is bytes:
+ txt = txt.decode('ascii')
kibble = json.loads(txt)
except subprocess.CalledProcessError as e:
return None