Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] running python script
- Date: Tue, 31 Aug 2004 12:24:31 +0900
- From: Shawn <javajunkie@example.com>
- Subject: Re: [tlug] running python script
- References: <opsdi80y0e0fabl5@example.com> <opsdjamjjv0fabl5@example.com>
- User-agent: Opera M2/7.54 (Linux, build 751)
> Well so much for believing what I read Wow, isn't that the truth! Got a Python script for windows running on *nix by changing from: if line == "\n": z += 1 #this looks to me like it would catch the end of a *nix file line, but wasn't catching them for some reason to: if line=="\r\n": z+= 1 #what the "#$%, why do I need to check for a windows line end The files which were written under *nix had a windows line ending, but apparently the app using them expected that. Looking at the script though...seemed ok. I guess the best would have been for the original writer to just have checked the last two chars of the line and it would work for both. -- Shawn Karma is immutable, so act accordingly!
- Follow-Ups:
- Re: [tlug] running python script
- From: Jim Tittsler
- References:
- [tlug] running python script
- From: Shawn
- Re: [tlug] running python script
- From: Shawn
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Sub: best thing on the internet
- Next by Date: Re: [tlug] running python script
- Previous by thread: Re: [tlug] running python script
- Next by thread: Re: [tlug] running python script
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links