cdash: fix reporting issue with python 3
This commit is contained in:
parent
831133a4c3
commit
a288449f0b
@ -302,7 +302,10 @@ def upload(self, filename):
|
|||||||
request.get_method = lambda: 'PUT'
|
request.get_method = lambda: 'PUT'
|
||||||
response = opener.open(request)
|
response = opener.open(request)
|
||||||
if self.current_package_name not in self.buildIds:
|
if self.current_package_name not in self.buildIds:
|
||||||
match = self.buildid_regexp.search(response.read())
|
resp_value = response.read()
|
||||||
|
if isinstance(resp_value, bytes):
|
||||||
|
resp_value = resp_value.decode('utf-8')
|
||||||
|
match = self.buildid_regexp.search(resp_value)
|
||||||
if match:
|
if match:
|
||||||
buildid = match.group(1)
|
buildid = match.group(1)
|
||||||
self.buildIds[self.current_package_name] = buildid
|
self.buildIds[self.current_package_name] = buildid
|
||||||
|
Loading…
Reference in New Issue
Block a user