git-p4, SyntaxError: invalid syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




      
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux