-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#480] Remove Python2 compatibility from code base #640
Conversation
looking good so far. please assert here how testing goes. |
41b4824
to
6b0d13d
Compare
have already done some piecemeal testing with good results. will run a full test later. |
Excellent! Keep pushing. |
d478f99
to
fac1329
Compare
There may still be a few points I haven't thought of, but presently the code is exclusively Python3-compatible ( |
.... now with minimal squashing |
Amazing work! We'll start the review process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Let's get another set of eyes on this before squashing/merging.
Good stuff!
How much does I'm just curious. |
Here's what happens if you try importing the PRC at tip of this branch currently:
As a result of the errors evoked, not the |
Great!... |
Can we... be kinder to anyone who might stumble into this by accident... like... import sys
if sys.version_info[0] < 3:
raise RuntimeError("This library is only supported on Python 3 and above.") But also check the minor version while we're there... |
Good point. We'll put that into |
nice and clean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty complete to me. Couldn't find anything wrong, so I think it looks good!
codacy has some opinions... but then... are we ready to squash? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second a squash
Created #644 for f-strings in logging statements. Created #645 for naked Created #646 for "Possibly unused variable" in a test seems... not worth the review/test time, but I say we address that in this PR if we address it at all (irods/test/collection_test.py line 171). |
please grep for |
Done. All gone!
|
alright - squash this. let's get it in. |
Is used in a format string. |
Tests pass , awaiting approval |
Yes, please squash. |
ok - sorry didn't see this til now |
squash done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You said tests are passing, everything checks out... I say # it.
#'d |
a note that we've also marked this as ready for Python 3.13. |
With this change, we remove all code meant explicitly to deal with the possibility of the PRC's running under Python 2. Especially the awkward (and sometimes voluminous) parts that interfere with a ready understanding of the code base as a whole.