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.
Description
This PR fully removes the
six
package and refactors some code.Related to #326
Note
I think it is easier to review this PR by commit.
Details
coerce_string_keys_to_text_type
function because the keys in dictionaries are no longer unicode strings.abstractproperty
. More aboutabstractproperty
: https://docs.python.org/3/library/abc.html#abc.abstractproperty__future__
imports because our imports were for supporting Python < 3. Ref: https://docs.python.org/3/library/__future__.html#module-contentsHow to test
Code
All the checks are passed.
Integration
Environment
Data
For more info:
tutor dev do importdemocourse -h
Test
python_lib.zip
and add this one:python_lib.zip
Note
If you want to create your python_lib from this version, you can clone the repo, enter in it, and then:
Screencasts
Everything still works as expected.
Screencast.from.2024-11-15.17-20-41.webm