invalid syntax - problems with CR (0x0a)



hi,
i'm very new to python and am experiencing the following problem:

an identical program that runs on certain computers crashes on other
machines due to Carriage Returns (CR; 0x0a) that
now appear in the source code. I guess it's some kind of character encoding
issue, i.e. ways of saving the source files...
I spent a lot of time trying to fix the problem but wasn't successful until
now.

Can somebody help me?

Cheers,
Cesare


error message inside the log file:

Traceback (most recent call last):
File
"S:\P037_Gewerbeverband\Programm\Testumgebung\meta_search_download_scheduler.py",
line 132, in instanceMP
exec 'import %s' % mp
File "<string>", line 1, in ?
File "S:\P037_Gewerbeverband\Programm\Testumgebung\weisseseiten.py", line
87
s = s.replace('.-', ' CHF')
s = s.replace(';', ' ')
^
SyntaxError: invalid syntax



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
.



Relevant Pages

  • Re: How to disable login after too many attempts
    ... Security auditors or some new PHB who doesn't know their tush ... have to get source code to do modifications. ... could scan the log file for the attempts and somehow disable the ... after hours to unlock an account when some manager can't get in because ...
    (comp.unix.admin)
  • What is class[] in CLR Profiler?
    ... CLRProfiler only outputs this if it's unable to obtain ... more precise type information. ... subdirectory in the source code, ... concerns the log file generation, ...
    (microsoft.public.dotnet.framework.clr)
  • Running test01.py under Windows (basic level)
    ... I have v2.5.2 installed and i've composed a source code i'm sure everybody will be ... def bloppA: ... i got errors and the pointer showed the colon claiming it's invalid syntax. ...
    (comp.lang.python)
  • Re: Help with use of code.InteractiveInterpreter for multiline code
    ... Take a look at the source code of the code module (file code.py in the ... The push() method of the InteractiveConsole class ... > SyntaxError: invalid syntax ... > What's the proper way to call the interpreter instance for a multiline ...
    (comp.lang.python)
  • Re: Strange nfilter/NewsProxy Behavior
    ... Subject: Converting Excel 2007 Nested "If" Statement to Excel 2003: ... not expect the code to touch the message body, ... log file very quickly.) ... The code change is noted in the source code, ...
    (sci.electronics.design)