Re: git-p4, SyntaxError: invalid syntax

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

 



On Tue, Dec 2, 2008 at 1:08 PM, Gary Yang <garyyang6@xxxxxxxxx> wrote:
>
> /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
>

This seems to indicate that your python doesn't support the "yield"
keyword (used in generators).

Are you using Python 2.2?  If so, that is a very old Python and I'd
recommend upgrading.  But even with 2.2 you can fix this by adding the
following import line:

from __future__ import generators

I'm not familiar with the git-p4 file specifically but the above
should hopefully fix your problem.


Cheers,

Jason
--
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