Skip to content

Commit a288449

Browse files
cdash: fix reporting issue with python 3
1 parent 831133a commit a288449

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/spack/spack/reporters/cdash.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,10 @@ def upload(self, filename):
302302
request.get_method = lambda: 'PUT'
303303
response = opener.open(request)
304304
if self.current_package_name not in self.buildIds:
305-
match = self.buildid_regexp.search(response.read())
305+
resp_value = response.read()
306+
if isinstance(resp_value, bytes):
307+
resp_value = resp_value.decode('utf-8')
308+
match = self.buildid_regexp.search(resp_value)
306309
if match:
307310
buildid = match.group(1)
308311
self.buildIds[self.current_package_name] = buildid

0 commit comments

Comments
 (0)