From: Eduardo Habkost <ehabkost@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org, "Cleber Rosa" <crosa@redhat.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [Qemu-devel] [PATCH 1/2] python: Remove scripts/argparse.py
Date: Mon, 11 Jun 2018 15:01:25 -0300 [thread overview]
Message-ID: <20180611180125.GQ7451@localhost.localdomain> (raw)
In-Reply-To: <20180611092721.GF11636@redhat.com>
On Mon, Jun 11, 2018 at 10:27:21AM +0100, Daniel P. Berrangé wrote:
> On Fri, Jun 08, 2018 at 02:35:57PM -0300, Eduardo Habkost wrote:
> > Python 2.7 (the minimum Python version we require) already
> > provides the argparse module on the standard library.
> >
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > ---
> > scripts/argparse.py | 2406 -------------------------------------------
> > 1 file changed, 2406 deletions(-)
> > delete mode 100644 scripts/argparse.py
>
> When this was added in 47e1cb1f0a130baa438d895eff5d05004c9a9aa2, it
> also added a COPYING.PYTHON file so that needs removing in this
> commit too - eg a straight revert of that commit.
Thanks for noting that. This is already in a pull request, so
I'm sending a separate patch.
>
> Second, various source files were then modified to add 'scripts' to
> their import path with a line like this:
>
> sys.path.append(os.path.join(os.path.dirname(__file__),
> '..', '..', 'scripts'))
>
> so those all need removing too, but I'd suggest that is done
> as a separate patch.
I have the impression that most scripts do this trick to be able
to use other modules like 'qemu' and 'qmp' too. In either case,
we need to review the code to find out. I will take a look.
--
Eduardo
next prev parent reply other threads:[~2018-06-11 18:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 17:35 [Qemu-devel] [PATCH 0/2] python: Remove unused compatibility modules Eduardo Habkost
2018-06-08 17:35 ` [Qemu-devel] [PATCH 1/2] python: Remove scripts/argparse.py Eduardo Habkost
2018-06-11 9:27 ` Daniel P. Berrangé
2018-06-11 18:01 ` Eduardo Habkost [this message]
2018-06-08 17:35 ` [Qemu-devel] [PATCH 2/2] python: Remove scripts/ordereddict.py Eduardo Habkost
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=20180611180125.GQ7451@localhost.localdomain \
--to=ehabkost@redhat.com \
--cc=berrange@redhat.com \
--cc=crosa@redhat.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).