Thanks all!
On Tuesday, September 14, 2010, mdipierro <mdipie...@cs.depaul.edu> wrote: > Thanks Jonathan, I will fix this tonight. > > massimo > > On Sep 14, 9:56 am, Jonathan Lundell <jlund...@pobox.com> wrote: >> 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.