From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: "Frédéric Danis" <frederic.danis@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] test: Fix syntax in bluezutils.py
Date: Thu, 6 Dec 2012 11:29:57 -0300 [thread overview]
Message-ID: <20121206142957.GA23489@samus> (raw)
In-Reply-To: <1354797576-11286-1-git-send-email-frederic.danis@linux.intel.com>
Hi,
On 13:39 Thu 06 Dec, Frédéric Danis wrote:
> Traceback (most recent call last):
> File "./simple-agent", line 12, in <module>
> import bluezutils
> File "/home/fdanis/src/bluez/test/bluezutils.py", line 22
> if not pattern or pattern == adapter["Address"] or
> ^
> SyntaxError: invalid syntax
> ---
> test/bluezutils.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/test/bluezutils.py b/test/bluezutils.py
> index d0c4773..de08cbd 100644
> --- a/test/bluezutils.py
> +++ b/test/bluezutils.py
> @@ -19,8 +19,8 @@ def find_adapter_in_objects(objects, pattern=None):
> adapter = ifaces.get(ADAPTER_INTERFACE)
> if adapter is None:
> continue
> - if not pattern or pattern == adapter["Address"] or
> - path.endswith(pattern)):
> + if not pattern or pattern == adapter["Address"] or \
> + path.endswith(pattern):
Ack.
Cheers,
--
Vinicius
prev parent reply other threads:[~2012-12-06 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 12:39 [PATCH] test: Fix syntax in bluezutils.py Frédéric Danis
2012-12-06 14:29 ` Vinicius Costa Gomes [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=20121206142957.GA23489@samus \
--to=vinicius.gomes@openbossa.org \
--cc=frederic.danis@linux.intel.com \
--cc=linux-bluetooth@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).