You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove from __future__ import division, print_function #2429
@peterjc Sorry, I mistook .tex example codes for docstrings/comments. My fork wasn't in sync. Seems like info about __future__ import was already handled in .tex.
Please review and I guess we could close this issue.
I was working on Tests/test_Tutorial.py anyway with e371d60, and with 8744772 I think you are right, we can close this issue. Thank you for your first Biopython contributions :)
Activity
chris-rands commentedon Dec 23, 2019
Thanks Peter, I agree this is a good first issue, if there are any volunteers
There are also 3 examples of
from __future__ import with_statementwhich could have been removed sometime ago (mandatory since Python 2.6)If you want to forbid these
__future__imports being added back into the codebase, there's a flake8 plugin that could be configured for this: https://github.com/xZise/flake8-future-importpeterjc commentedon Dec 25, 2019
That's the main code base done - still a couple in the
Tests/folder:peterjc commentedon Dec 25, 2019
If anyone wants to tackle the future imports under Tests, please comment here to avoid duplication of effort.
Dsujan commentedon Dec 26, 2019
@peterjc Check the PR.
I have removed the remaining future imports in Test.
In some cases of docstring/comments like:
example = ">>> from __future__ import print_function\n" + exampleThey are untouched.
peterjc commentedon Dec 26, 2019
Can you fix the docstrings/comments too please?
Dsujan commentedon Dec 26, 2019
Sure.
Dsujan commentedon Dec 26, 2019
@peterjc Sorry, I mistook .tex example codes for docstrings/comments. My fork wasn't in sync. Seems like info about
__future__import was already handled in .tex.Please review and I guess we could close this issue.
peterjc commentedon Dec 26, 2019
I was working on
Tests/test_Tutorial.pyanyway with e371d60, and with 8744772 I think you are right, we can close this issue. Thank you for your first Biopython contributions :)