git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: StGIT cannot import properly from stdin

From
POPierre 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.

Previous: Catalin MarinasNext: Catalin Marinas
Message 7 of 9 in “StGIT cannot import properly from stdin”
  1. Pierre OssmanSep 21, 2005
  2. Catalin MarinasSep 21, 2005
  3. Pierre OssmanSep 22, 2005
  4. Catalin MarinasSep 22, 2005
  5. Pierre OssmanSep 22, 2005
  6. Catalin MarinasSep 22, 2005
  7. Pierre OssmanSep 22, 2005
  8. Catalin MarinasSep 22, 2005
  9. Catalin MarinasSep 22, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.