This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Fully Migrate to Python 3 and cleanup some dead code #104
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This branch is used for Python 3 migration. Python 3 test is enabled on this branch. We periodically synchronize the master with this branch until we get everything working on Python 3.
in python3 iteritems became items in python2 unless you have a large dict items() is just fine for usage https://python-future.org/compatible_idioms.html#iterating-through-dict-keys-values-items Related: issue openshift-eng#84
urlparse was combined into urllib and can be imported from there https://python-future.org/compatible_idioms.html#urllib-module this approach was already present in other files Related: issue openshift-eng#84
refactered code that was using unicode in py2 https://python-future.org/compatible_idioms.html#unicode Related: issue openshift-eng#84
This appears to be related to the python 2 vs 3 differences in how it handles strings Related: issue openshift-eng#84
python3 appears to have different behavior for exceptions and how to expose them in modules Related: issue openshift-eng#84
print in py3 changed into a function Related: issue openshift-eng#84
openshift-ci-robot
added
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
size/XXL
Denotes a PR that changes 1000+ lines, ignoring generated files.
labels
Dec 28, 2019
vfreex
force-pushed
the
py3-stage2
branch
2 times, most recently
from
December 29, 2019 13:27
09ac055
to
9b2c0d6
Compare
vfreex
changed the title
WIP: Fully support Python 3 and remove dead code
Fully Migrate to Python 3 and cleanup some dead code
Dec 29, 2019
openshift-ci-robot
removed
the
do-not-merge/work-in-progress
Indicates that a PR should not merge because it is a work in progress.
label
Dec 29, 2019
Build #2
|
/lgtm |
New changes are detected. LGTM label has been removed. |
Build #3
|
This PR is based on openshift-eng#85 and [futurize][]. I carefully reviewed all code changes introduced by openshift-eng#85 and the `futurize` tool, manually fixed all issues I noticed. During the review process, I also deleted a lot of dead code in the codebase. I also tested this PR with the functional test suite openshift-eng#105. [futurize]: futurize
Build #4
|
This was referenced Jan 2, 2020
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fully Migrate to Python 3 and cleanup some dead code
This PR is based on #85 and futurize.
I carefully reviewed all code changes introduced by #85 and the
futurize
tool,manually fixed all issues I noticed.
During the review process, I also deleted a lot of dead code and fixed some minor bugs in the codebase.
I also tested this PR with the functional test suite #105.
This PR will also bump the version to
1.0.0-rc.1
(Wouldn't it be nice to have version >= 1?)and prompt a warning message like pip if Elliott is running with Python 2:
@sosiouxme @tbielawa @shiywang @thiagoalessio @joepvd Could you guys help review this change?