Massimo, here's a patch. In rewrite.py, change this:
exec routesfp.read() in symbols
to this:
exec routesfp.read().translate(None, '\r') in symbols
(and test)
I notice that there's something like this elsewhere:
def compile2(code,layer):
"""
The +'\n' is necessary else compile fails when code ends in a comment.
"""
return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
...though in the case of the rewrite exec call, there doesn't seem to be a need
for a terminal newline, even if I put a comment on the last line.