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

git-p4, SyntaxError: invalid syntax

From
GYGary Yang <garyyang6@yahoo.com>
Date
Dec 2, 2008, 19:08 UTC
Message-ID
<186027.87419.qm@web37901.mail.mud.yahoo.com>

I got git-p4 from “git clone git://git.kernel.org/pub/scm/git/git.git git” I copied git-p4 from contrib/fast-import/git-p4 to /home/gyang/bin

I got SyntaxError  when I ran,
git-p4 clone //depot/Workshop
/home/gyang/bin/git-p4:161: Warning: 'yield' will become a reserved keyword in the future
  File "/user/svdc/pluo/bin/git-p4", line 161
    yield pattern
                ^
SyntaxError: invalid syntax
I opened the file, git-p4. There are three import lines. I am not python programmer. Maybe I missed something in python? I have python installed at /usr/local/bin/python

which python /usr/local/bin/python

vi git-p4 import optparse, sys, os, marshal, popen2, subprocess, shelve import tempfile, getopt, sha, os.path, time, platform import re

Can someone tell me what I missed?
Thanks.
      
Next: Jason Foreman
Message 1 of 2 in “git-p4, SyntaxError: invalid syntax”
  1. Gary YangDec 2, 2008
  2. Jason ForemanDec 2, 2008

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.