From: "Jason Foreman" <jason@threeve.org>
To: "git list" <git@vger.kernel.org>
Subject: Re: git-p4, SyntaxError: invalid syntax
Date: Tue, 2 Dec 2008 13:45:04 -0600 [thread overview]
Message-ID: <f9aa767e0812021145v1ecc9c56k6ad06ac7678e3d0d@mail.gmail.com> (raw)
In-Reply-To: <186027.87419.qm@web37901.mail.mud.yahoo.com>
On Tue, Dec 2, 2008 at 1:08 PM, Gary Yang <garyyang6@yahoo.com> 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
prev parent reply other threads:[~2008-12-02 19:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 19:08 git-p4, SyntaxError: invalid syntax Gary Yang
2008-12-02 19:45 ` Jason Foreman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f9aa767e0812021145v1ecc9c56k6ad06ac7678e3d0d@mail.gmail.com \
--to=jason@threeve.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).