Re: StGIT cannot import properly from stdin
- From
- Pierre Ossman <drzeus-list@drzeus.cx>
- Date
- Sep 22, 2005, 15:06 UTC
- Message-ID
- <4332C880.1060906@drzeus.cx>
- In-Reply-To
- <tnxr7bh188q.fsf@arm.com>
Catalin Marinas wrote:
Show 5 quoted lines
>It looks like a problem with Python since it re-opens sys.stdin once >it receives EOF. > > >
Bummer. I checked with the local Python guru here and he suggested changing the for loop to an infinite while and f.readline().
Show 6 quoted lines
>I was referring to the 'cache the input to memory' variant, which is a >bit more complicated. Caching to a file is simple but do you need to >read patches from the terminal directly? > > >
I don't explicitly need it, but it keeps things simple for me. I can copy and paste the patch from my mailer without having to bother with saving it to a temporary file.