From nobody Wed May 14 13:10:50 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1524085131225946.1587570663468; Wed, 18 Apr 2018 13:58:51 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 82E292821B; Wed, 18 Apr 2018 20:58:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 48FB982278; Wed, 18 Apr 2018 20:58:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 045571805971; Wed, 18 Apr 2018 20:58:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwONS013469 for ; Wed, 18 Apr 2018 16:58:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id EE319808C8; Wed, 18 Apr 2018 20:58:24 +0000 (UTC) Received: from mx1.redhat.com (ext-mx01.extmail.prod.ext.phx2.redhat.com [10.5.110.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DDA7582DEC for ; Wed, 18 Apr 2018 20:58:08 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E881381231 for ; Wed, 18 Apr 2018 20:57:57 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id d19-v6so8377948wre.1 for ; Wed, 18 Apr 2018 13:57:57 -0700 (PDT) Received: from rst.Home ([2a02:c7d:692a:c500:1ebc:73f3:5f60:b131]) by smtp.gmail.com with ESMTPSA id y7sm708743wmy.30.2018.04.18.13.57.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I4P+QB1MhwtRj+1SrvtmeC9pIkc/IVcfPW/10ZDHAVg=; b=Etjufx9qchx5iHxIsO2lTBlri5TevQDVkMulvQ6CvEjhdsit5pyszf9iV6XYcwvu9f HUiZHhFW/X+5bI5JdnBYx7nZ1lEAkixiC88LoVg7b5v/hgnkMejb1CA8/qgZYUGncgFa tq/JLP5+u1Jj6V3kH2DBua3bKN7xCdPJI9C5PFaV9NWGCRtrkswX4aau99GH2wUdQYr8 ObSiZY5uXTD7Mx6k+wCq/e73Ab+gI7NSjL4B3eik8tN+RolZiQLBZ53vf95ULFehJY3z IqNon0U0Wl1p7nrSFrr8JYYOoAkRrHU4SmWVX13hi6/fpV9aVkm0S/e0XhZrIfxmvu07 yw5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=I4P+QB1MhwtRj+1SrvtmeC9pIkc/IVcfPW/10ZDHAVg=; b=uAYxeENT3EqYDmQNXXulsiTzYjqqQyThdmZubdrQwoIhtGVYzL/SIVP0cFP5adyh4u SBH/LeD9QjkStMZC8RHi33Uyo0DMDPYLF9O/QnQazf6qiSwTJs8H0ShIYqIA/FbP94Jm heG/fuLCm+Ecusgog2xC+ESEqe/pK5bDzN6s6/Pi6ESWJPI/7CrC1BsOtdrfP2PXdBPJ A1tZ0Xs9LWNrEEHXAYuYOTe4x7LKG/pHTWYvL32fHiFkQ3ewHscFkiMeGIxsPS7Rqpzv +tNu7jSHSUgdEPbfKwoAzuyGWOh4aMOMWkoGLVua5xVwe1ifvaCOquwdfPb3cK88TbYq bhwQ== X-Gm-Message-State: ALQs6tA5zjLCfuhNKHNYPejsKpj2NI+KIOaqj92HIy9TYGMexELduPL6 iSC7uwIXjxo8VuaxkM4Oerzza4tc X-Google-Smtp-Source: AIpwx48vwDe9bfhHAG+kA/g/zd76w63DtVOmYRqdpa3NUu/CfYTCglwRf2/BbE3QBh0Ox+UNvDvp9Q== X-Received: by 10.28.101.6 with SMTP id z6mr2578706wmb.86.1524085076359; Wed, 18 Apr 2018 13:57:56 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:40 +0100 Message-Id: <20180418205747.28848-3-rstoyanov1@gmail.com> In-Reply-To: <20180418205747.28848-1-rstoyanov1@gmail.com> References: <20180418205747.28848-1-rstoyanov1@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 18 Apr 2018 20:57:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 18 Apr 2018 20:57:58 +0000 (UTC) for IP:'209.85.128.194' DOMAIN:'mail-wr0-f194.google.com' HELO:'mail-wr0-f194.google.com' FROM:'rstoyanov1@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.55 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS, T_DKIM_INVALID) 209.85.128.194 mail-wr0-f194.google.com 209.85.128.194 mail-wr0-f194.google.com X-Scanned-By: MIMEDefang 2.83 on 10.5.110.25 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 2/9] pylint: Move standard library imports on top X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 18 Apr 2018 20:58:50 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Following PEP8 [1], imports should be grouped in the following order: standard library imports related third party imports local application/library specific imports With a blank line between each group of imports. [1] https://www.python.org/dev/peps/pep-0008/#imports Signed-off-by: Radostin Stoyanov --- scripts/virt-sandbox-image | 3 ++- setup.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/virt-sandbox-image b/scripts/virt-sandbox-image index 9be4f8c..9d0ff82 100755 --- a/scripts/virt-sandbox-image +++ b/scripts/virt-sandbox-image @@ -1,8 +1,9 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- =20 -from libvirt_sandbox_image import cli import sys =20 +from libvirt_sandbox_image import cli + if __name__ =3D=3D '__main__': sys.exit(cli.main()) diff --git a/setup.py b/setup.py index f29be2f..85f5d45 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,11 @@ =20 -from setuptools import setup -from distutils.command.build import build - import os import re import time =20 +from distutils.command.build import build +from setuptools import setup + class my_build(build): user_options =3D build.user_options =20 --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list