Repository navigation
Removing version check for python2 from files - #2520
Conversation
|
|
||
| # TODO - Fix this failure under Windows with Python 3.1 and 3.2 | ||
| if not (sys.platform == "win32" and sys.version_info[0] >= 3): | ||
| if not sys.platform == "win32": |
There was a problem hiding this comment.
Do we still need this? Maybe this is a good time to find out.
There was a problem hiding this comment.
You mean remove it, and see if AppVeyor breaks? Or do either of you have access to a Windows machine or two for testing?
There was a problem hiding this comment.
If we do keep this if-statement, it would be nicer as:
if sys.platform != "win32":There was a problem hiding this comment.
yeah, I don't know about this one that's why in this comment I said that it is a special one for me because I use Linux.
There was a problem hiding this comment.
I am testing this on a Windows machine. will let you know the results in a while :)
There was a problem hiding this comment.
OK, so it looks like some Windows weirdness is still there, even on Python 3. That might deserve a followup issue, but if sys.platform != "win32": is enough for this pull request.
There was a problem hiding this comment.
@peterjc can you give me some hints for solving those weird errors I am getting in windows? I want to give help for windows compatibility also.
There was a problem hiding this comment.
The original workaround was added 8 years ago:
0fab81a
I don't immediately recall any more details - hopefully I know a little more about encodings than I did then.
There was a problem hiding this comment.
will try solving the problems thanks for the lead 😇
Codecov Report
@@ Coverage Diff @@
## master #2520 +/- ##
==========================================
- Coverage 84.9% 84.77% -0.14%
==========================================
Files 321 320 -1
Lines 52965 52372 -593
==========================================
- Hits 44970 44398 -572
+ Misses 7995 7974 -21
Continue to review full report at Codecov.
|
|
|
||
| # TODO - Fix this failure under Windows with Python 3.1 and 3.2 | ||
| if not (sys.platform == "win32" and sys.version_info[0] >= 3): | ||
| if sys.platform != "win32": |
There was a problem hiding this comment.
I'd have expected flake8 to say there should still be a blank line here...
|
Thank you! |
This pull request addresses issue #2490
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runflake8locally, andunderstand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)