On Oct 9, 2010, at 3:47 PM, mart wrote: > > A little late on this one, but I am a little curious. Have you found > the root cause for these unwelcome characters? I see these type of > characters often enough and not just in the code folks check in, but > they make there way into all sorts of annoying places (like user > change-descriptions). Typically, these get uploaded to scm system > because of encoding issues, like double byte supporting code pages (at > least that's where I see most of them coming from). If this is similar > issue, I would have a few suggestions (depending on the type of > privilege Mercurial provides code line owners)... If this is not the > case, then sorry for budding in ;)
It appears to be Windows newlines (CRLF). Python tolerates them for normal execution, but not, it seems, for compile() or exec(). Must be some kind of religious issue....