Skip to content

Python3 compat #13

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

Closed

Conversation

electrofelix
Copy link

This allows the tests to pass on python3, but I'm sure there is more work to be done to ensure that it fully works.

Darragh Bailey added 3 commits November 6, 2014 16:08
Fix multiple issues about unused imports without breaking tests where
assumptions are made on exporting imports to dependent modules. Remove
unused variables and correct renaming whitespace issues.
Add in try/except to catch import errors with cStringIO and use StringIO
from the io module instead. Also ensure that where write access is
needed, create the StringIO without an initial string.

Need to avoid passing an initial buffer value to cStringIO.StringIO() as
it will return a read-only StringI object. Instead create the object
first with no initial arguments to get a proper StringIO instance and
then write the desired buffer to it.
@Byron
Copy link
Member

Byron commented Nov 12, 2014

Thank you.
However, I will start working on the port based on the work in this pull request as it appears to be further down the road. Please feel free to chime in.

@Byron Byron closed this Nov 12, 2014
@Byron
Copy link
Member

Byron commented Nov 12, 2014

And actually I don't know which one is the better starting position, I will see if both efforts can be brought together. Thanks again for your efforts.

@Byron
Copy link
Member

Byron commented Nov 13, 2014

I have tried it in python 3.4, and tests wouldn't run at all due to errors during import. It turns out that no print statement was converted to the function style yet, and there might be much more.
Therefore I believe that pull request #5 is further down the road indeed.

Maybe you haven't pushed a few commits yet ?

@Byron Byron closed this Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants