Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test annotation parsing: strip line endings
Since annotation parsing opens the file in byte mode, carriage returns are not stripped away, and can ultimately be included as part of an annotation's data. A consequence of this is that `DMLC-FLAG` will pass stray carriage returns to DMLC on Windows. mini-python will apparently discard these, but Pypy *doesn't*, and that can cause parsing of the flag to fail. The fix to this is to strip away any line endings explicitly.
- Loading branch information