Skip to content
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

Porting rows to Python3 #151

Closed
wants to merge 6 commits into from
Closed

Porting rows to Python3 #151

wants to merge 6 commits into from

Conversation

henriquebastos
Copy link

This is a work in progress.

I could make all tests pass on Python3, but 3 are broken on Python2 because of something I can't find yet on the type identification system.

This PR is just to share it with you. Maybe your familiarity with the code can help fixing the tests.

[]'s!

I couldn’t find where it’s used, so I’ve killed it.
I’ve ran `2to3 -x future .`

Then I’ve checked the generated diffs looking for 
string types to use six.

After that manual fixes I ran `2to3 -wn -x .` to 
process all python files.
@turicas
Copy link
Owner

turicas commented Apr 30, 2016

Te amo <3

@turicas
Copy link
Owner

turicas commented Apr 30, 2016

@henriquebastos, thank you very much for this!

A general question: ee need something to test on more than one Python version. Do you think tox is right for this job? Is there any other better solution?

I'm going to add some comments into the changed lines.

@@ -30,7 +30,7 @@


def import_from_uwsgi_log(filename):
fields = UWSGI_FIELDS.keys()
fields = list(UWSGI_FIELDS.keys())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need all these list(). Could you please check it? They also happen in other files such as rows/cli.py.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@turicas turicas mentioned this pull request Apr 30, 2016
@turicas
Copy link
Owner

turicas commented Apr 30, 2016

@henriquebastos, code review done. Please check my comments -- meanwhile I'm going to run the tests on Python 2 and 3 to check the errors. :)

@turicas
Copy link
Owner

turicas commented Apr 30, 2016

I've just run the tests here and got these results:

  • For Python 2: FAILED (errors=3)
  • For Python 3: FAILED (errors=57, failures=18)

Are these numbers expected?

@turicas
Copy link
Owner

turicas commented Sep 5, 2016

I'm closing this PR since the migration to support Python3 is already done and was released on version 0.3.0.

@turicas turicas closed this Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants