All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willian Rampazzo <wrampazz@redhat.com>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Cleber Rosa" <crosa@redhat.com>
Subject: Re: [PATCH 2/6] avocado_qemu: standardize supper() call following PEP3135
Date: Mon, 20 Sep 2021 17:55:50 -0300	[thread overview]
Message-ID: <CAKJDGDaMxKOMUkxQVmJFKxcbUVgRw3UHhXO9yqdRjsvohnU=zg@mail.gmail.com> (raw)
In-Reply-To: <20210920204932.94132-3-willianr@redhat.com>

Ouch, s/supper/super/ in the email title.

On Mon, Sep 20, 2021 at 5:52 PM Willian Rampazzo <willianr@redhat.com> wrote:
>
> PEP3135 states when calling super(), there is no need to use arguments.
> This changes the calls on avocado_qemu to standardize according to
> PEP3135 and avoid warnings from linters.
>
> Signed-off-by: Willian Rampazzo <willianr@redhat.com>
> ---
>  tests/acceptance/avocado_qemu/__init__.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py
> index d9e1b32aa1..d2077d63cd 100644
> --- a/tests/acceptance/avocado_qemu/__init__.py
> +++ b/tests/acceptance/avocado_qemu/__init__.py
> @@ -282,7 +282,7 @@ def fetch_asset(self, name,
>                      asset_hash=None, algorithm=None,
>                      locations=None, expire=None,
>                      find_only=False, cancel_on_missing=True):
> -        return super(Test, self).fetch_asset(name,
> +        return super().fetch_asset(name,
>                          asset_hash=asset_hash,
>                          algorithm=algorithm,
>                          locations=locations,
> @@ -470,7 +470,7 @@ def _set_distro(self):
>              self.distro.checksum = distro_checksum
>
>      def setUp(self, ssh_pubkey=None, network_device_type='virtio-net'):
> -        super(LinuxTest, self).setUp()
> +        super().setUp()
>          self._set_distro()
>          self.vm.add_args('-smp', '2')
>          self.vm.add_args('-m', '1024')
> --
> 2.31.1
>
>



  reply	other threads:[~2021-09-20 20:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 20:49 [PATCH 0/6] avocado_qemu: small fixes and tweaks Willian Rampazzo
2021-09-20 20:49 ` [PATCH 1/6] Acceptance Tests: add standard clean up at test tearDown() Willian Rampazzo
2021-09-20 20:49 ` [PATCH 2/6] avocado_qemu: standardize supper() call following PEP3135 Willian Rampazzo
2021-09-20 20:55   ` Willian Rampazzo [this message]
2021-09-20 20:49 ` [PATCH 3/6] avocado_qemu: fix import module based on isort Willian Rampazzo
2021-09-20 20:49 ` [PATCH 4/6] avocado_qemu: tweak ssh connect method Willian Rampazzo
2021-09-27 14:12   ` Philippe Mathieu-Daudé
2021-09-27 14:39     ` Willian Rampazzo
2021-09-20 20:49 ` [PATCH 5/6] avocado_qemu: explicitly return None to avoid R1710 Willian Rampazzo
2021-09-20 20:49 ` [PATCH 6/6] avocado_qemu: fix inheritance order on LinuxTest class Willian Rampazzo
2021-09-27 14:13 ` [PATCH 0/6] avocado_qemu: small fixes and tweaks Philippe Mathieu-Daudé
2021-09-27 16:41 ` Philippe Mathieu-Daudé

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='CAKJDGDaMxKOMUkxQVmJFKxcbUVgRw3UHhXO9yqdRjsvohnU=zg@mail.gmail.com' \
    --to=wrampazz@redhat.com \
    --cc=crosa@redhat.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wainersm@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.