-
Notifications
You must be signed in to change notification settings - Fork 301
clean python 2 codes #976
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
clean python 2 codes #976
Conversation
Codecov Report
@@ Coverage Diff @@
## master #976 +/- ##
==========================================
- Coverage 96.84% 96.84% -0.01%
==========================================
Files 65 65
Lines 3933 3925 -8
==========================================
- Hits 3809 3801 -8
Misses 124 124
Continue to review full report at Codecov.
|
@auvipy Thanks for this other cleanup up. As this is the second of these PRs do you think you caught all the Python 2 left over now? Maybe good to quickly go through all the code. I just want to avoid plenty of the same kind of commits if at all possible. |
possible |
A couple of greps reveals that there a few more occurrences to clean up (I have run those on master):
|
ok I will revisit this soon |
i might make some mistake |
@auvipy I will look at the code changes in more detail later, but it seems CI is failing. Could you have a look why this could be? Thanks. |
thats why i prefer smaller chuncks at a time. im not sure why command failed |
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.
Thanks for working on this. See inline comment in terms of the failing test.
Following occurrences have been missed:
example/tests/test_serializers.py: return super(ArtProjectSerializer, child_self).__init__(
example/tests/unit/test_filter_schema_params.py: super(DummyEntryViewSet, self).__init__(**kwargs)
example/tests/unit/test_renderer_class_methods.py: return super(CustomRenderer, cls).extract_attributes(fields, resource)
example/tests/unit/test_renderer_class_methods.py: return super(CustomRenderer, cls).extract_relationships(
example/tests/unit/test_serializer_method_field.py:from __future__ import absolute_import
Once this are fixed this PR should be ready for merging.
i dont thin we can remove this class TestPolymorphicModelSerializer(TestCase):
|
all green |
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.
Thanks! Looks good to me now.
yea! thanks a lot for guiding! |
Description of the Change
Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS