From: Stefan Hajnoczi <stefanha@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: qemu-devel@nongnu.org, "Daniel P. Berrange" <berrange@redhat.com>,
John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Partially revert "python: futurize -f libfuturize.fixes.fix_absolute_import"
Date: Wed, 27 Jun 2018 15:12:22 +0100 [thread overview]
Message-ID: <20180627141222.GA6623@stefanha-x1.localdomain> (raw)
In-Reply-To: <20180621175451.7948-1-ehabkost@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
On Thu, Jun 21, 2018 at 02:54:51PM -0300, Eduardo Habkost wrote:
> Since commit 068cf7a44cd4d65c05aa877dbebced295be5ce44, qmp-shell
> is broken:
>
> $ ./scripts/qmp/qmp-shell
> Traceback (most recent call last):
> File "./scripts/qmp/qmp-shell", line 70, in <module>
> from . import qmp
> ValueError: Attempted relative import in non-package
>
> Relative imports don't work on scripts that are executed
> directly, so revert the change on the scripts inside scripts/qmp.
>
> Fixes: 068cf7a44cd4d65c05aa877dbebced295be5ce44
> Reported-by: John Snow <jsnow@redhat.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> scripts/qmp/qemu-ga-client | 3 +--
> scripts/qmp/qmp | 3 +--
> scripts/qmp/qmp-shell | 3 +--
> scripts/qmp/qom-fuse | 3 +--
> scripts/qmp/qom-get | 3 +--
> scripts/qmp/qom-list | 3 +--
> scripts/qmp/qom-set | 3 +--
> scripts/qmp/qom-tree | 3 +--
> 8 files changed, 8 insertions(+), 16 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
prev parent reply other threads:[~2018-06-27 14:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 17:54 [Qemu-devel] [PATCH] Partially revert "python: futurize -f libfuturize.fixes.fix_absolute_import" Eduardo Habkost
2018-06-27 14:12 ` Stefan Hajnoczi [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=20180627141222.GA6623@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=crosa@redhat.com \
--cc=ehabkost@redhat.com \
--cc=jsnow@redhat.com \
--cc=qemu-devel@nongnu.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).