pymod-process.py parsing of line endings

Issue #114 resolved
Joris created an issue

I accidentally had a header file with windows line endings instead of unix. pymod-process.py (on linux) got confused and did not recognize a portion of the instructions.

Allowing pymod-process.py to acount for wrong line endings is an easy fix:

On line 1792 (r1189:9aca2ef99f14) replace the line {{{ #!python lines.extend(open(f).readlines()) }}}

with {{{ #!python lines.extend(map(lambda l: l.rstrip("\r\n"), open(f).readlines())) }}}

Comments (4)

  1. Former user Account Deleted

    I think, and jowie acquiesces, that failing on DOS lineendings is preferable, to keep them out of asss

  2. Log in to comment