Skip to content

Switch python print statements to be python2/python3 compatible#11694

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
eparis:python3-print
Sep 16, 2020
Merged

Switch python print statements to be python2/python3 compatible#11694
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
eparis:python3-print

Conversation

@eparis
Copy link
Copy Markdown
Member

@eparis eparis commented Sep 8, 2020

We use a number of print statements in the repo, both in jobs and
libraries. This is valid python2, but not python3. Given python2 went
EOL months ago we need to catch up.

This should add the header which makes python2 act like python3 in
regards to print() statement and which is a noop after we switch.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 8, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 8, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2020
We use a number of `print ` statements in the repo, both in jobs and
libraries. This is valid python2, but not python3. Given python2 went
EOL months ago we need to catch up.

This should add the header which makes python2 act like python3 in
regards to print() statement and which is a noop after we switch.
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eparis, petr-muller, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 16, 2020
@openshift-merge-robot openshift-merge-robot merged commit feeced9 into openshift:master Sep 16, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@eparis: Updated the following 14 configmaps:

  • job-config-4.1 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.1-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.1-periodics.yaml
  • job-config-4.2 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.2-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.2-periodics.yaml
  • job-config-4.4 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.4-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.4-periodics.yaml
  • job-config-4.6 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.6-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.6-periodics.yaml
  • job-config-4.1 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.1-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.1-periodics.yaml
  • job-config-4.3 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.3-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.3-periodics.yaml
  • job-config-4.5 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.5-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.5-periodics.yaml
  • job-config-4.6 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.6-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.6-periodics.yaml
  • job-config-4.7 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.7-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.7-periodics.yaml
  • job-config-4.2 configmap in namespace ci at cluster app.ci using the following files:
    • key openshift-release-release-4.2-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.2-periodics.yaml
  • job-config-4.3 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.3-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.3-periodics.yaml
  • job-config-4.4 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.4-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.4-periodics.yaml
  • job-config-4.5 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.5-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.5-periodics.yaml
  • job-config-4.7 configmap in namespace ci at cluster api.ci using the following files:
    • key openshift-release-release-4.7-periodics.yaml using file ci-operator/jobs/openshift/release/openshift-release-release-4.7-periodics.yaml
Details

In response to this:

We use a number of print statements in the repo, both in jobs and
libraries. This is valid python2, but not python3. Given python2 went
EOL months ago we need to catch up.

This should add the header which makes python2 act like python3 in
regards to print() statement and which is a noop after we switch.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

wking added a commit to wking/openshift-release that referenced this pull request Oct 22, 2020
These snuck in with 787549f (Switch python print statements to be
python2/python3 compatible, 2020-09-08, openshift#11694).
@eparis eparis deleted the python3-print branch July 19, 2021 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants