aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>2021-10-15 09:38:16 +0300
committerGitHub <noreply@github.com>2021-10-15 09:38:16 +0300
commit2e47138a78c4552e6e7028614fffce5ea4a12360 (patch)
treeb4e361e06104aeb64258492dcfadac729d507ef1
parent91dd8f343b82ca7d01ef18bada08adb77c51146f (diff)
downloadvaadin-framework-2e47138a78c4552e6e7028614fffce5ea4a12360.tar.gz
vaadin-framework-2e47138a78c4552e6e7028614fffce5ea4a12360.zip
fix incompatible issue when using python3 script in 7.7 (#12436)
* fix incompatible method used for python script in 7.7 * Update GeneratePostPublishReport.py
-rw-r--r--scripts/GeneratePostPublishReport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/GeneratePostPublishReport.py b/scripts/GeneratePostPublishReport.py
index 4b11daf754..12ed7cf883 100644
--- a/scripts/GeneratePostPublishReport.py
+++ b/scripts/GeneratePostPublishReport.py
@@ -33,7 +33,7 @@ def checkArchetypeMetaData(archetypeMetadataUrl, version):
if archetype_metadata_request.status_code != 200:
return createTableRow(traffic_light.format(color="black"), "Check archetype metadata: <a href='{url}'>unable to retrieve metadata from {url}</a>".format(url=archetypeMetadataUrl))
else:
- if "version=\"{version}\"".format(version=version) in archetype_metadata_request.content:
+ if "version=\"{version}\"".format(version=version) in archetype_metadata_request.text:
return createTableRow(traffic_light.format(color="green"), "Check archetype metadata: <a href='{url}'>metadata is correct for {url}</a>".format(url=archetypeMetadataUrl))
else:
return createTableRow(traffic_light.format(color="red"), "Check archetype metadata: <a href='{url}'>metadata seems to be incorrect for {url}</a>".format(url=archetypeMetadataUrl))
@@ -66,5 +66,5 @@ content += createTableRow("", "<a href=\"https://github.com/vaadin/framework/rel
content += "</table></body></html>"
-with open("result/report.html", "wb") as f:
+with open("result/report.html", "w") as f:
f.write(content)