From nobody Fri May 3 16:40:32 2024 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 1524085133088525.626395562439; Wed, 18 Apr 2018 13:58:53 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C347D312C006; Wed, 18 Apr 2018 20:58:51 +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 976FF705B1; Wed, 18 Apr 2018 20:58:51 +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 569DA1805971; Wed, 18 Apr 2018 20:58:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwNAI013454 for ; Wed, 18 Apr 2018 16:58:23 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6B4232B9EA; Wed, 18 Apr 2018 20:58:23 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65C6B2B505 for ; Wed, 18 Apr 2018 20:58:07 +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 A00AF85A02 for ; Wed, 18 Apr 2018 20:57:56 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id d19-v6so8377802wre.1 for ; Wed, 18 Apr 2018 13:57:56 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:57:54 -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=/Iz8M2n2yS4I+xvtOzOdP3GoPixy1WAuBt6FoUQ/nF8=; b=fVNUtAvz7skKEn8iBa/hlGYvt2NBCu6sW5DbM6WeWkSYdH++wGtUe0yELsAqmxAWY2 fNieGw3S8qYE9YlGRYpT4NPXpZBF5i7PC7HaB6PybahhIBJWgEw7qsuylj06bPnQrh6K F7HFkDUF3CW2LoIzaJoJTpxEKsMYjYtlegXHSg8/CkcpYsAj4Eb3pdEnxePpIwq5G1AH HcoOY5YEMPqORGKTBPuv9PP4FgMcZXxn1lAbL5Mn1Y1c7Gt1AHAKnk4BRsjpt9DvIS6x wie+7Fv15ZFyRZS37lx+eBXvU5zh4a9kc5tGlBhLc2SbHIoCwg+Y5a7VZXUsf9mZp3+3 XMRA== 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=/Iz8M2n2yS4I+xvtOzOdP3GoPixy1WAuBt6FoUQ/nF8=; b=AiazklICn/vCLqTvasSuUB0IgSwUn6mAe8CaAbn/UsRRb8F7VZLBGX9eEfeyOKo3tB t6y7tCM644RdquD7pumvRIMJQU0yuoLV/g4HaX9NSfbX9MyenBnOc0DZ2vsKSAJfoI4L IufH8d/d62RPKKfoRV1ojDa+1NhJRA4E5v7yvA6VEGWocHhC7RgNCOjDKPdrA0phAVkX MCoXpka9X78xTRI9JuAcj/nkbO4tHvzChdiGB5aJ0+CogUIv4beBVOcM/w1p1mUNG/yI GcIE59JkRIg7F4jJI5jEtoR4/g8NmZKKvuinr3thAnXKk018MkZj1JzdKKi4mWbXJFTe K4IQ== X-Gm-Message-State: ALQs6tBA3/zC4b2pb7hbD3gugPku326YGqFq6+rtGiyGBlSkgHhS4m9S M8zyvtNGdw4IN19vzTYiqak62Qa9 X-Google-Smtp-Source: AIpwx49x0FRMC0P9uCy8hC/jRBJBOHhpmoWLNZQzBmflnLIe4l5NTTAzF6pI1NXcCw18xQP3Af6sEg== X-Received: by 10.28.145.134 with SMTP id t128mr2814588wmd.72.1524085075073; Wed, 18 Apr 2018 13:57:55 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:39 +0100 Message-Id: <20180418205747.28848-2-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.26]); Wed, 18 Apr 2018 20:57:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 18 Apr 2018 20:57:56 +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.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 1/9] pylint: Remove unused import statements 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 18 Apr 2018 20:58:52 +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" Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/cli.py | 3 --- libvirt_sandbox_image/sources/docker.py | 1 - setup.py | 3 --- 3 files changed, 7 deletions(-) diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py index 4bbeb5c..585df96 100644 --- a/libvirt_sandbox_image/cli.py +++ b/libvirt_sandbox_image/cli.py @@ -23,12 +23,9 @@ =20 import argparse import gettext -import hashlib -import json import os import os.path import re -import shutil import sys import subprocess import random diff --git a/libvirt_sandbox_image/sources/docker.py b/libvirt_sandbox_imag= e/sources/docker.py index be67e29..cf90112 100755 --- a/libvirt_sandbox_image/sources/docker.py +++ b/libvirt_sandbox_image/sources/docker.py @@ -22,7 +22,6 @@ =20 import sys import json -import traceback import os import subprocess import shutil diff --git a/setup.py b/setup.py index c23c84d..f29be2f 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,7 @@ =20 from setuptools import setup -from setuptools import Command from distutils.command.build import build -from distutils.util import get_platform =20 -import sys import os import re import time --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 From nobody Fri May 3 16:40:32 2024 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 1524085128564186.4532043263721; Wed, 18 Apr 2018 13:58:48 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 27E064A706; Wed, 18 Apr 2018 20:58:47 +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 F1C6180A87; Wed, 18 Apr 2018 20:58:46 +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 AC1BD18033EB; Wed, 18 Apr 2018 20:58:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwL86013423 for ; Wed, 18 Apr 2018 16:58:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1D13881F13; Wed, 18 Apr 2018 20:58:21 +0000 (UTC) Received: from mx1.redhat.com (ext-mx17.extmail.prod.ext.phx2.redhat.com [10.5.110.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 148D881F3A for ; Wed, 18 Apr 2018 20:58:10 +0000 (UTC) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) (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 3B0C93133E80 for ; Wed, 18 Apr 2018 20:57:59 +0000 (UTC) Received: by mail-wr0-f170.google.com with SMTP id u4-v6so8337099wrg.10 for ; Wed, 18 Apr 2018 13:57:59 -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.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:57:56 -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=nFHl4DznVY462W5Sa2t1MmikXxX0CP4xlKQ1NjtWcrM=; b=njVewaSd/sI/wgVO7hatmvVaKRd5ZbmGVgxhf5PHSpXTmH73CeHVZondfvtexq3/Cs 0rAaAhFcARBFrgZTqNY1Z5uW2CHvt/FmfLXmcHEyqvCNCj9hX11wpIdDV5vwyUrCahzk LtuwaiMRPm/eXBgiS7MQqn/fWsd3l4iRzDQrb+9CzbyNUFnaEtcxb/H6SSdSj+Gmmxrs xQOPbOIWfZCNBqJzsPyp+uzfkiUekr1NbVubA9mw4Ycj4C5nA3AWavINEbhBFMsYb6lW G0T5rmEx5iHS5PCUhAQOwxOFuadQCDuJULyJkosHHbC7F0eIxW8kPYQVJNaJG0y7Kvq+ 3Oww== 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=nFHl4DznVY462W5Sa2t1MmikXxX0CP4xlKQ1NjtWcrM=; b=aQpJIYw7EbJDJTKdtfc/gvAh1YXXVrdXf/rhJKFPe8SebCuUuNz24zUALQAjXkv0vQ l9ZZLEFDEqjcdZ5ecpwN3Qlo/XOYfbg3H7mS7xrCMso7v9eKQeJIedo+6qZwthlVVW2L Dqb72wQDQjJEXzlJ9SSyQSAyyzynaXZWVwtPS8G+nL9z5fgkmirqbAf9lSfkfvnkMYRz 5thNdpL4isko6eme8aF49uIqZATuKhBVxEglqHtQ/m6cMfTeAle8zOofXnk0np+MCaBq GZjl3nJXy89AU6RgExGaOObl1D1q0tHt3i2W9w5Ow99Ew5m/vekAYFXz8+jHayQl7pTS 2TUA== X-Gm-Message-State: ALQs6tCNJ2vYXEl2DSSUj/MCENBDpLWMgcwso3vIt+d+Z69w24rsrEjt 3PKJp2WK8VB0f4R6GYaVA/uRDVyx X-Google-Smtp-Source: AIpwx4/+HVKYAsnA/eBuH0xIDZa3LBRVvoww2HFF+ti5QyQd9qvVaoObOv+d4dwZFZRnqH1K6vtnVw== X-Received: by 10.28.6.149 with SMTP id 143mr2816014wmg.61.1524085077671; Wed, 18 Apr 2018 13:57:57 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:41 +0100 Message-Id: <20180418205747.28848-4-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.46]); Wed, 18 Apr 2018 20:57:59 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Wed, 18 Apr 2018 20:57:59 +0000 (UTC) for IP:'209.85.128.170' DOMAIN:'mail-wr0-f170.google.com' HELO:'mail-wr0-f170.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.170 mail-wr0-f170.google.com 209.85.128.170 mail-wr0-f170.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.46 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 3/9] pylint: Use consistent indentation of 4 spaces 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 18 Apr 2018 20:58:47 +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" Pylint warning W0311 - Bad indentation http://pylint-messages.wikidot.com/messages:w0311 Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/sources/docker.py | 4 ++-- scripts/virt-sandbox-image | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libvirt_sandbox_image/sources/docker.py b/libvirt_sandbox_imag= e/sources/docker.py index cf90112..94eb6d1 100755 --- a/libvirt_sandbox_image/sources/docker.py +++ b/libvirt_sandbox_image/sources/docker.py @@ -47,9 +47,9 @@ class DockerConfParser(): def getEnvs(self): lst =3D self.json_data['config']['Env'] if lst is not None and isinstance(lst,list): - return lst + return lst else: - return [] + return [] =20 class DockerImage(): =20 diff --git a/scripts/virt-sandbox-image b/scripts/virt-sandbox-image index 9d0ff82..c021850 100755 --- a/scripts/virt-sandbox-image +++ b/scripts/virt-sandbox-image @@ -6,4 +6,4 @@ import sys from libvirt_sandbox_image import cli =20 if __name__ =3D=3D '__main__': - sys.exit(cli.main()) + sys.exit(cli.main()) diff --git a/setup.py b/setup.py index 85f5d45..dd22fd5 100644 --- a/setup.py +++ b/setup.py @@ -97,7 +97,7 @@ setup( ], install_requires=3D[], cmdclass =3D { - 'build': my_build, + 'build': my_build, }, classifiers =3D [ "License :: OSI Approved :: GNU Lesser General Public License v2 o= r later (LGPLv2+)", --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085107276473.5622813862018; Wed, 18 Apr 2018 13:58:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 405F04902F; Wed, 18 Apr 2018 20:58:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 03B687DFFF; Wed, 18 Apr 2018 20:58:25 +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 55CB14CA9D; Wed, 18 Apr 2018 20:58:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwLgc013424 for ; Wed, 18 Apr 2018 16:58:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1EA6781F38; Wed, 18 Apr 2018 20:58:21 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 16D9B82277 for ; Wed, 18 Apr 2018 20:58:11 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) (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 938073164228 for ; Wed, 18 Apr 2018 20:58:00 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id q13-v6so8374670wre.3 for ; Wed, 18 Apr 2018 13:58:00 -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.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:57:58 -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=+ll7ULFVCNAgU8PzjHwOhhqabOxP83m3G6yv/tBiExU=; b=prQwyxR8XhTPZfbvy8bnRr3MPmo6xmKQuSu381D/Bgq4giuXfoUz0MtHv7mmNYQjGF TAAWdrQTUNvZK79U0wV9zcXePFViRYK78SqLuijPx5vOYrh9T5kUL0J82DmQRW1DE2LL My4qjLVO4wDZUAg8kIT81yU+7xS3CpyLWT4cDdlg0mUttDRA9/8CU2k+uQ0T4QhGzhL0 q/0OB5VxqTPSARl/YJPxcP8FjVrdZsVlNVY84saLm9UWOF5VFnVliPj8KbNwiSKiZUu1 kejxKOGA+nK08TGhAwhV9SsbMQxFf3ECexFIcsam6rPiIxBGkEOQuR7duKtOc/e9+8mg H9Fg== 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=+ll7ULFVCNAgU8PzjHwOhhqabOxP83m3G6yv/tBiExU=; b=cNBQf/tHlc3rITfCDqTbxHHa9zfYsivgOAKlQCz2hqcAFgZwsXWVolApzMMjAIJLdI DM12ye9681sBL2XR7PQLlPDWCOgpC98JA2CfG3LJgC+MfYojviJjjWwCi20GBhX5EPAn EJnXzVrgoUHo5T92COuNwerTS4sxvXXBu0A0i+vZv5oQZgw+sezXQbx595/x3QG2piNO HuPx2vsd0BmHZZJIHktyZa34XeBmHjuTDEOGeCnYQOp1/ikmNcizWkK+ZMhNrT6pfRfn vayA//U6luiIFMlZSbZ29F48q1MQctvRh1JmZegQNI7Ym6OiWYU6f9xxQzmll9uhEtXE wLGg== X-Gm-Message-State: ALQs6tDJqIN0o45Lv6ahZEvBPzHCwyt6j70qgXXbvmEhgbFrCn1KV3ye 29fyEu9Mb61Rduou4KRm/N1Biteq X-Google-Smtp-Source: AIpwx4+9Wew7TOARyM3iwiOYcUi2Mm1TTKeCI/SD4MLy0vvoXRx6IP7jE58la85wIjSMswgnjBQPDQ== X-Received: by 10.28.69.133 with SMTP id l5mr2572555wmi.152.1524085078965; Wed, 18 Apr 2018 13:57:58 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:42 +0100 Message-Id: <20180418205747.28848-5-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.44]); Wed, 18 Apr 2018 20:58:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 18 Apr 2018 20:58:00 +0000 (UTC) for IP:'209.85.128.196' DOMAIN:'mail-wr0-f196.google.com' HELO:'mail-wr0-f196.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.196 mail-wr0-f196.google.com 209.85.128.196 mail-wr0-f196.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 4/9] py3: Use 'builtins' instead of '__builtin__' 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 18 Apr 2018 20:58:25 +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" In Python3, the __builtin__ module is renamed to builtins. https://docs.python.org/3/library/builtins.html#module-builtins Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py index 585df96..ec5fd6d 100644 --- a/libvirt_sandbox_image/cli.py +++ b/libvirt_sandbox_image/cli.py @@ -50,8 +50,8 @@ try: localedir=3D"/usr/share/locale", codeset =3D 'utf-8') except IOError: - import __builtin__ - __builtin__.__dict__['_'] =3D unicode + import builtins + builtins.__dict__['_'] =3D str =20 =20 def debug(msg): --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085106361649.4569869442357; Wed, 18 Apr 2018 13:58:26 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9BA493262263; Wed, 18 Apr 2018 20:58:24 +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 ADA647D660; Wed, 18 Apr 2018 20:58:23 +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 7846B180215E; Wed, 18 Apr 2018 20:58:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwI6J013404 for ; Wed, 18 Apr 2018 16:58:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6447A7D67D; Wed, 18 Apr 2018 20:58:18 +0000 (UTC) Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4DD857D922 for ; Wed, 18 Apr 2018 20:58:13 +0000 (UTC) Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) (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 0534C316255C for ; Wed, 18 Apr 2018 20:58:02 +0000 (UTC) Received: by mail-wr0-f172.google.com with SMTP id h3-v6so8364583wrh.5 for ; Wed, 18 Apr 2018 13:58:01 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:57:59 -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=efzBswo/c7TMrVmo7QqcNSYP4yVc56QSfI6zHqc9yDA=; b=IOuLz+tF7DMnoEWWUKV4vix2umqMBGoQ48O2l13cSNJiOdCDzQkNX+IquP/TlrckLw 8U3ycQzqKVEzVv09W1UawEgRnNYzmP/FwlMw3GJrDcVwQrpTnTd3N0YHZMIkbxJAzAGm wnctLtiVpQV3MWWNRGydo8M0Tfw++jFxBubJIaQxFc4NYJcwCfEkRmnJ4TCZaDk6LxKM 5uiLw8UFBvIvfoRcxgItZisqJd+lQxUC42N/tAkPauk75n2SIUm+QmtJzzh8Rt/hzTOr lb86Kek2+Jgq10Itn4/jeSUpPQ7lfYWgGvJIYZLt93lvxwz06PWtHJC8XkH2E75DCXl1 VRgw== 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=efzBswo/c7TMrVmo7QqcNSYP4yVc56QSfI6zHqc9yDA=; b=uXuETQ5UsMa68C8+dzYH/U54pUtkBzsGKITk6v7ffSk1FOl2E9HG9yvatCHbmgmSKJ bjL463mAJ+a1AeAU77bYYitjNFDNBNPjTDFBqYW7OvyHdzCSxZlB7u2+plDQZ/5ruCYH HHTHuCHc+J/X4Is0LkfHMuzripT3Z9eiJ4rW/l8tbDLnVQ1bVEJiz2OQspHioquYWLEZ jKjWlubx88vuiyCsxDId6hGjbg/ZVBeJBqVvg1qZsbCOlmba6Mt3upnwwxILCt8GQdM3 ja9qp4LWXEKQTOXDoTBj4J8Tc7OXzTdqhmZjSIXcre1OfGBd39vzitZ8j5K/ILRQFeb1 zA6Q== X-Gm-Message-State: ALQs6tBUXJ4Pz3TkAHvY1hNijdekgh730ikSyTrQiKjWIKABeg752fis 2jv+A83/eeM+J3u5ym2VCyeSceHd X-Google-Smtp-Source: AIpwx48Yx9eBHjHzHz1VuHsnotWchgvepd+YuOCN4W7GLKZh+9rsi1Tsc278pHnhxL8RVYNN40YfnQ== X-Received: by 10.28.71.77 with SMTP id u74mr2935184wma.149.1524085080316; Wed, 18 Apr 2018 13:58:00 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:43 +0100 Message-Id: <20180418205747.28848-6-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.40]); Wed, 18 Apr 2018 20:58:02 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 18 Apr 2018 20:58:02 +0000 (UTC) for IP:'209.85.128.172' DOMAIN:'mail-wr0-f172.google.com' HELO:'mail-wr0-f172.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.172 mail-wr0-f172.google.com 209.85.128.172 mail-wr0-f172.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.40 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 5/9] pylint: Fix white-space around keywords 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 18 Apr 2018 20:58:25 +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" This changes aim to resolve Pylint C0326. http://pylint-messages.wikidot.com/messages:c0326 Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/cli.py | 26 +++++++++++++-----------= -- libvirt_sandbox_image/sources/base.py | 4 ++-- libvirt_sandbox_image/sources/docker.py | 4 ++-- libvirt_sandbox_image/sources/virtbuilder.py | 4 ++-- libvirt_sandbox_image/template.py | 4 ++-- setup.py | 4 ++-- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py index ec5fd6d..08c88a4 100644 --- a/libvirt_sandbox_image/cli.py +++ b/libvirt_sandbox_image/cli.py @@ -48,7 +48,7 @@ gettext.textdomain("libvirt-sandbox") try: gettext.install("libvirt-sandbox", localedir=3D"/usr/share/locale", - codeset =3D 'utf-8') + codeset=3D'utf-8') except IOError: import builtins builtins.__dict__['_'] =3D str @@ -109,7 +109,7 @@ def run(args): if args.connect is not None: cmd.append("-c") cmd.append(args.connect) - params =3D ['-m','host-image:/=3D%s,format=3Dqcow2' % diskfile] + params =3D ['-m', 'host-image:/=3D%s,format=3Dqcow2' % diskfile] =20 networkArgs =3D args.network if networkArgs is not None: @@ -144,40 +144,40 @@ def list_cached(args): tmpls.extend(template.Template.get_all(source, "%s/%s" % (args.templat= e_dir, source))) for tmpl in tmpls: - print (tmpl) + print(tmpl) =20 def requires_template(parser): parser.add_argument("template", help=3D_("URI of the template")) =20 def requires_name(parser): - parser.add_argument("-n","--name", + parser.add_argument("-n", "--name", help=3D_("Name of the running sandbox")) =20 def requires_debug(parser): - parser.add_argument("-d","--debug", + parser.add_argument("-d", "--debug", default=3DFalse, action=3D"store_true", help=3D_("Run in debug mode")) =20 def check_connect(connectstr): - supportedDrivers =3D ['lxc:///','qemu:///session','qemu:///system'] + supportedDrivers =3D ['lxc:///', 'qemu:///session', 'qemu:///system'] if not connectstr in supportedDrivers: raise ValueError("URI '%s' is not supported by virt-sandbox-image"= % connectstr) return True =20 def requires_connect(parser): - parser.add_argument("-c","--connect", + parser.add_argument("-c", "--connect", help=3D_("Connect string for libvirt")) =20 def requires_template_dir(parser): global default_template_dir - parser.add_argument("-t","--template-dir", + parser.add_argument("-t", "--template-dir", default=3Ddefault_template_dir, help=3D_("Template directory for saving templates"= )) =20 def requires_image_dir(parser): global default_image_dir - parser.add_argument("-I","--image-dir", + parser.add_argument("-I", "--image-dir", default=3Ddefault_image_dir, help=3D_("Image directory for saving images")) =20 @@ -222,9 +222,9 @@ def gen_run_args(subparser): parser.add_argument("args", nargs=3Dargparse.REMAINDER, help=3D_("command arguments to run")) - parser.add_argument("-N","--network", + parser.add_argument("-N", "--network", help=3D_("Network params for running template")) - parser.add_argument("-e","--env",action=3D"append", + parser.add_argument("-e", "--env", action=3D"append", help=3D_("Environment params for running template"= )) =20 parser.set_defaults(func=3Drun) @@ -234,7 +234,7 @@ def gen_list_args(subparser): _("List locally cached images")) requires_template_dir(parser) =20 - parser.add_argument("-s","--source", + parser.add_argument("-s", "--source", help=3D_("Name of the template source")) =20 parser.set_defaults(func=3Dlist_cached) @@ -275,5 +275,5 @@ def main(): sys.stderr.flush() sys.exit(1) except Exception as e: - print (e) + print(e) sys.exit(1) diff --git a/libvirt_sandbox_image/sources/base.py b/libvirt_sandbox_image/= sources/base.py index 0fc9243..c132489 100644 --- a/libvirt_sandbox_image/sources/base.py +++ b/libvirt_sandbox_image/sources/base.py @@ -127,13 +127,13 @@ class Source(): =20 # Utility functions to share between the sources. =20 - def format_disk(self,disk,format,connect): + def format_disk(self, disk, format, connect): cmd =3D ['virt-sandbox'] if connect is not None: cmd.append("-c") cmd.append(connect) cmd.append("-p") - params =3D ['--disk=3Dfile:disk_image=3D%s,format=3D%s' %(disk,for= mat), + params =3D ['--disk=3Dfile:disk_image=3D%s,format=3D%s' %(disk, fo= rmat), '/sbin/mkfs.ext3', '/dev/disk/by-tag/disk_image'] cmd =3D cmd + params diff --git a/libvirt_sandbox_image/sources/docker.py b/libvirt_sandbox_imag= e/sources/docker.py index 94eb6d1..3ca1b10 100755 --- a/libvirt_sandbox_image/sources/docker.py +++ b/libvirt_sandbox_image/sources/docker.py @@ -533,7 +533,7 @@ class DockerSource(base.Source): parentImage =3D None for imagetagid in imagelist: templateImage =3D templatedir + "/" + imagetagid + "/template.= qcow2" - cmd =3D ["qemu-img","create","-f","qcow2"] + cmd =3D ["qemu-img", "create", "-f", "qcow2"] if parentImage is not None: cmd.append("-o") cmd.append("backing_fmt=3Dqcow2,backing_file=3D%s" % paren= tImage) @@ -657,7 +657,7 @@ class DockerSource(base.Source): tempfile =3D imagedir + "/" + sandboxname.split('/')[-1] + ".qcow2" if not os.path.exists(imagedir): os.makedirs(imagedir) - cmd =3D ["qemu-img","create","-q","-f","qcow2"] + cmd =3D ["qemu-img", "create", "-q", "-f", "qcow2"] cmd.append("-o") cmd.append("backing_fmt=3Dqcow2,backing_file=3D%s" % diskfile) cmd.append(tempfile) diff --git a/libvirt_sandbox_image/sources/virtbuilder.py b/libvirt_sandbox= _image/sources/virtbuilder.py index ba554e8..5e723e6 100755 --- a/libvirt_sandbox_image/sources/virtbuilder.py +++ b/libvirt_sandbox_image/sources/virtbuilder.py @@ -93,7 +93,7 @@ class VirtBuilderSource(base.Source): def get_command(self, template, templatedir, userargs): return userargs =20 - def get_disk(self,template, templatedir, imagedir, sandboxname): + def get_disk(self, template, templatedir, imagedir, sandboxname): diskfile =3D "%s/%s.qcow2" % (templatedir, self._get_template_name= (template)) tempfile =3D imagedir + "/" + sandboxname + ".qcow2" if not os.path.exists(imagedir): @@ -105,5 +105,5 @@ class VirtBuilderSource(base.Source): subprocess.check_call(cmd) return tempfile =20 - def get_env(self,template, templatedir): + def get_env(self, template, templatedir): return [] diff --git a/libvirt_sandbox_image/template.py b/libvirt_sandbox_image/temp= late.py index 25c43e6..a69ef53 100644 --- a/libvirt_sandbox_image/template.py +++ b/libvirt_sandbox_image/template.py @@ -71,7 +71,7 @@ class Template(object): classimpl =3D getattr(mod, classname) return classimpl() except Exception as e: - print (e) + print(e) raise Exception("Invalid source: '%s'" % source) =20 def get_source_impl(self): @@ -120,7 +120,7 @@ class Template(object): if o.query is not None and o.query !=3D "": for param in o.query.split("&"): (key, val) =3D param.split("=3D") - query[key] =3D val + query[key] =3D val return klass(source, protocol, o.hostname, o.port, o.username, o.password, diff --git a/setup.py b/setup.py index dd22fd5..0b16ae7 100644 --- a/setup.py +++ b/setup.py @@ -96,10 +96,10 @@ setup( "libvirt_sandbox_image/sources" ], install_requires=3D[], - cmdclass =3D { + cmdclass=3D{ 'build': my_build, }, - classifiers =3D [ + classifiers=3D[ "License :: OSI Approved :: GNU Lesser General Public License v2 o= r later (LGPLv2+)", "Programming Language :: Python", "Programming Language :: Python :: 3", --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085126742938.2974432176111; Wed, 18 Apr 2018 13:58:46 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EBC5A3164222; Wed, 18 Apr 2018 20:58:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BDD162AE5F; Wed, 18 Apr 2018 20:58:44 +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 7B6974CA9F; Wed, 18 Apr 2018 20:58:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwMcp013444 for ; Wed, 18 Apr 2018 16:58:22 -0400 Received: by smtp.corp.redhat.com (Postfix) id 87CE87CA04; Wed, 18 Apr 2018 20:58:22 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C571705BF for ; Wed, 18 Apr 2018 20:58:13 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) (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 08FA93164222 for ; Wed, 18 Apr 2018 20:58:03 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id d19-v6so8378416wre.1 for ; Wed, 18 Apr 2018 13:58:02 -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.58.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:58:00 -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=4+bUihhTx7VlTX/qbiXlwiQpHak/E0rlj9iFmIiQbgs=; b=WyR5z4tXUt8Z4GA0vgZm6QF8oWzMg4nrVj62ayXJDOmHlo7L8zNUz0qP/M6LEPHVI+ dbHsK/LxJ3djGyG610Fu+5IG528jvfYlU/u7v79ToitYUiXbJstRrJUk3faqfy6GSLtm d4J8BoLCAtUYmBDA3O9giOLrg1ZnMAuys3kUeG/gwuC3cdV0PWEdItAMFZwsm1MH85Qq ZrmE068O8rXShe/puIMnKeEJ/QuMvc3me/vLYVaXzuxs5II8f8GZANDtXe3rDxBwHIJo rr1XPpXxRillpchmxpYDeAD3m1spOGlBfGM9T53bVJlRvy5crBQ43BF+15Y7DEPdWntl DNWQ== 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=4+bUihhTx7VlTX/qbiXlwiQpHak/E0rlj9iFmIiQbgs=; b=o78yyp6sx+85H88OKxp5lwFGLCBgHez9H40dvQ6Q40DXYIjt6azqR9QH0N260xsnCS Q6Hk/cJxwersfS5sroJn0/Br14LARW62koiFAad8RJ4LPBnR8pry02wyaRY3Cd5kdP6n igqbVvvy7Tg2sfc/EEk0Bt/Be7sijGORtIBEukLRPUHZDZPxUmUO15h0RA8xUngRWfK9 yKwvNwIkYAI7LTOz8/7FY+B1oIbwHnBJUDp3FIFvcJ83v6NiPFKMKy7ZS5cd8UP9MLSZ hsmqh/5TD2n2zvlmcaN+2z3HYpOyExi4YIan/eNgfiQtqn1s+7pHwD0Pevt2w0WDCYvX kqUg== X-Gm-Message-State: ALQs6tDygTHzADIHGx9FXoMUuJQhF2Tz0NBFG22W+xmRdvCmkOQ9iwqf 8HHoHs79FOA6RburHTWQtWKEy1Oe X-Google-Smtp-Source: AIpwx48A61ecWyrW5O+rpDntp/dnLtnatzYo+LAax6irWMrSIXsCje7U4YdyCMianwfyeh8mGpTGAw== X-Received: by 10.28.24.4 with SMTP id 4mr2880188wmy.127.1524085081467; Wed, 18 Apr 2018 13:58:01 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:44 +0100 Message-Id: <20180418205747.28848-7-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.44]); Wed, 18 Apr 2018 20:58:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 18 Apr 2018 20:58:03 +0000 (UTC) for IP:'209.85.128.193' DOMAIN:'mail-wr0-f193.google.com' HELO:'mail-wr0-f193.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.193 mail-wr0-f193.google.com 209.85.128.193 mail-wr0-f193.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 6/9] setup: Add shebang 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 18 Apr 2018 20:58:45 +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" Signed-off-by: Radostin Stoyanov --- setup.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 =3D> 100755 setup.py diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 0b16ae7..aec7f03 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- =20 import os import re --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085136075331.7209411940762; Wed, 18 Apr 2018 13:58:56 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC5BC3004407; Wed, 18 Apr 2018 20:58:54 +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 8CFFF82DE9; Wed, 18 Apr 2018 20:58:54 +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 48F12180BAD6; Wed, 18 Apr 2018 20:58:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwhC8013527 for ; Wed, 18 Apr 2018 16:58:43 -0400 Received: by smtp.corp.redhat.com (Postfix) id 70B787F6CF; Wed, 18 Apr 2018 20:58:43 +0000 (UTC) Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B1D47F6C7 for ; Wed, 18 Apr 2018 20:58:14 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) (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 3BE9F30841AB for ; Wed, 18 Apr 2018 20:58:04 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id w3-v6so8368465wrg.2 for ; Wed, 18 Apr 2018 13:58:04 -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.58.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:58:02 -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=3B2H7sisRnyBjvH7O/lYHvjKTzoE0WKzsYgwVSVc4tI=; b=CJZmiW8+/UdiWhoHqNFMP8tG6vl/jH0Z0ulUy0UhDWm5zINz/v677gb2rjEE+06Ih8 OhttPltpa25cUbp6JpkUlP7iM/X7cJlMePQxKlCJmi1nYO6sbAJ5X+z0LHifG0pk+YgF P1bqyDaXvMIELAFbMxP5NU1d7Agyzhu6S3TwwlFGOZlEIZuDrsFMyt2EZoWaxhF/y6A7 i3GGgfdFmRXKzt64ATm8haZc6vlpVzPIumwZzHcm2cPttIXZI9BPFaaUCuxmnY0anbvN 3Mp1ScZptGKR0ENMvTaqvJrTmCZH01baUTc3kniQ+aVuJPkL1Rt+F7sezb/iVZjkfI0P bhkw== 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=3B2H7sisRnyBjvH7O/lYHvjKTzoE0WKzsYgwVSVc4tI=; b=IINHvNNKDeHgVD3Z8pEcihNqyTJplgGKBKWvcGTXXlv/LeSe1ALecq7UWtEYrsPhjo r+ZUNHk9LtrvpNRKVgigEsgY97YVHTQXdVx7nHDXiqqNlTn4f7oV52x4t99IlDVc9J7h u828OWPlGWF7wFYl2gJfkdQySgIv47OzFqVabj3COUw6UhX8hfzJ6NJk/XqdN60X/asr XlHfgpuw27nFN3RqtCIJS5GR5dCtDtLcaeqpfM8BbYkJ3sRoGRttrd213OwFcd87Cwj0 up4yDixjEzhuxgU/cXAUF83SaeaMiPc/KD0Adv6xcqZaIAjKgQa87cl3cuCed2y8x5O+ MRrQ== X-Gm-Message-State: ALQs6tB41HCTCwrpc3Jyf6UApiJVBx70xZIWF6vxjmGveZzcqx7JJtmv so09DTaaFCEZu3Dzwe8oN8+/9KNa X-Google-Smtp-Source: AIpwx49t1mXoCqeGIdbZ10j1TXc0RAEH4rZVShGxwMH3Cdp+lDv0hval5D8FCsWpLsVy9ZU5fTgpmQ== X-Received: by 2002:adf:c6c7:: with SMTP id c7-v6mr2623401wrh.104.1524085082716; Wed, 18 Apr 2018 13:58:02 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:45 +0100 Message-Id: <20180418205747.28848-8-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.40]); Wed, 18 Apr 2018 20:58:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 18 Apr 2018 20:58:04 +0000 (UTC) for IP:'209.85.128.195' DOMAIN:'mail-wr0-f195.google.com' HELO:'mail-wr0-f195.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.195 mail-wr0-f195.google.com 209.85.128.195 mail-wr0-f195.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.40 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 7/9] cli: Remove unused constants 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.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 18 Apr 2018 20:58:55 +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" Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/cli.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py index 08c88a4..e96d422 100644 --- a/libvirt_sandbox_image/cli.py +++ b/libvirt_sandbox_image/cli.py @@ -40,9 +40,6 @@ else: default_template_dir =3D os.environ['HOME'] + "/.local/share/libvirt/t= emplates" default_image_dir =3D os.environ['HOME'] + "/.local/share/libvirt/imag= es" =20 -debug =3D False -verbose =3D False - gettext.bindtextdomain("libvirt-sandbox", "/usr/share/locale") gettext.textdomain("libvirt-sandbox") try: --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085106391351.42472298842483; Wed, 18 Apr 2018 13:58:26 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B56BB30014C1; Wed, 18 Apr 2018 20:58:24 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF6CB7F6C0; Wed, 18 Apr 2018 20:58:23 +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 B4A214CA99; Wed, 18 Apr 2018 20:58:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3IKwIQ3013403 for ; Wed, 18 Apr 2018 16:58:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id 63E457D665; Wed, 18 Apr 2018 20:58:18 +0000 (UTC) Received: from mx1.redhat.com (ext-mx19.extmail.prod.ext.phx2.redhat.com [10.5.110.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4DCAD7D911 for ; Wed, 18 Apr 2018 20:58:16 +0000 (UTC) Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) (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 7832931325B0 for ; Wed, 18 Apr 2018 20:58:05 +0000 (UTC) Received: by mail-wr0-f178.google.com with SMTP id h3-v6so8364918wrh.5 for ; Wed, 18 Apr 2018 13:58:05 -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.58.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:58:03 -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=KLxpLebzEmObqFKBOeYuq+d2+dQIueB1wf5uUKd/f74=; b=TMr+tpwjs28eIvWSxTG1VG+Td1Ut5BRoUV5qWL5mxiiHB5rV0JVJ99BwN76xxdHtee OjkcxjAYhQ39w7x2Cwq6jcMKKXOGXMzM/C31DweY8bp9QCB4THZBYtjj0SbFmBhBop/y 8aSji1fBvhBRk0coV+fcsdRPbK+9BDWdFQZPTvQmiSr4H3PfZcYap/dI5TKcV36nToGO qm5IHIAs3tPFItThaqnxy5RAUjSiXCkCwdtYDGq7t1iGYavddMJ68COVrDmo1Ckl5cEh TUIMgmjzUOLZFe10rTYp8jtoAqUBLhUWczs6FtD/O0aEmYdz6axVZwSz4DM02HTfc02Z IEPw== 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=KLxpLebzEmObqFKBOeYuq+d2+dQIueB1wf5uUKd/f74=; b=NpxI9UnusCbpPnFJDPLzSu/6ym/GhrnDt592wqGVEdRRuWzcM7vfm/ZZ2RIQE/gGxX iV0jSvIjCEJpXHhGPh8WetEayjynm3Yh7PwxIJFxh2awrGPEOz0uV1uzKiphW6NdylD2 JEEVOvUpq5L9NQbQMLqU9ivUvb3rlfpqmk/lUEr368EmSxLgHUStf/AphZrEuUqcIpy0 b/hMLkOwfC4Fz2PudY2oLHDTKBfYT6/FmLMOYioZo6le/5k7bIn9PKLpk0MBeyoO6AMM 83bsNeZ4CT2e2e1HjrC/PmIk2ndGsUC6erqNU4+savigz2uBlg+vrQwmFpksL5XqjSli JRag== X-Gm-Message-State: ALQs6tBc+jxnxzAoFQbmFXnFhpRMWB9a837oPWdkbps6+qAe+WVjtgCJ GHlvOL1YOYPe6olSpoVmhJFOsR7+ X-Google-Smtp-Source: AIpwx49WVjJqMnJaBArzxGVtgIRuTGSqhIODiT87U42S8a/dpo49XS7vjKvlgdMbA9MhjQq1khnR4Q== X-Received: by 2002:adf:ad46:: with SMTP id p64-v6mr2508262wrc.44.1524085083940; Wed, 18 Apr 2018 13:58:03 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:46 +0100 Message-Id: <20180418205747.28848-9-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.48]); Wed, 18 Apr 2018 20:58:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 18 Apr 2018 20:58:05 +0000 (UTC) for IP:'209.85.128.178' DOMAIN:'mail-wr0-f178.google.com' HELO:'mail-wr0-f178.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.178 mail-wr0-f178.google.com 209.85.128.178 mail-wr0-f178.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.48 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Radostin Stoyanov Subject: [libvirt] [PATCH sandbox-image 8/9] cli: Remove redundant global statements 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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 18 Apr 2018 20:58:25 +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" The global statement is needed for assignment of variables in global scope [1]. In this case, we only read the value of those variables, therefore we do not need to explicitly use the global statement. [1] https://docs.python.org/3/reference/simple_stmts.html#the-global-statem= ent Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/cli.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/libvirt_sandbox_image/cli.py b/libvirt_sandbox_image/cli.py index e96d422..95c5147 100644 --- a/libvirt_sandbox_image/cli.py +++ b/libvirt_sandbox_image/cli.py @@ -167,13 +167,11 @@ def requires_connect(parser): help=3D_("Connect string for libvirt")) =20 def requires_template_dir(parser): - global default_template_dir parser.add_argument("-t", "--template-dir", default=3Ddefault_template_dir, help=3D_("Template directory for saving templates"= )) =20 def requires_image_dir(parser): - global default_image_dir parser.add_argument("-I", "--image-dir", default=3Ddefault_image_dir, help=3D_("Image directory for saving images")) --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri May 3 16:40:32 2024 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 1524085137782913.7248091958561; Wed, 18 Apr 2018 13:58:57 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 83B0C316424A; Wed, 18 Apr 2018 20:58:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 449607DFF4; Wed, 18 Apr 2018 20:58:56 +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 EBA564CAA2; Wed, 18 Apr 2018 20:58:55 +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 w3IKwORr013467 for ; Wed, 18 Apr 2018 16:58:24 -0400 Received: by smtp.corp.redhat.com (Postfix) id E8F2D82DD3; Wed, 18 Apr 2018 20:58:24 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC3D782DD5 for ; Wed, 18 Apr 2018 20:58:17 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) (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 BC9AE85A07 for ; Wed, 18 Apr 2018 20:58:06 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id s18-v6so8352936wrg.9 for ; Wed, 18 Apr 2018 13:58:06 -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.58.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 13:58:04 -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=e4r7ppbNQ5bCIh8kmEFrOvVDHiz8LI+gSojogOoyrsQ=; b=QMt2Y9fP4t04oQPRDrp0dNEIUPVWodOHjmXt9J/CBoxXKViDsdcA5dVipPSSBjJf8L DOgxTmV9a5e2krvrTqSpWBddH1kaESkwyrxA3i0aK6RN6Qap53cPSXJsORdW7yapeyFa u51xEEt+YbIR6Mpa/ynBMDkMgvz6w6nZDZ0lwMY4t1CYfqhRDNstp1wydVz1VVfaGoS1 ieaACO+Q4FnF2xQ0VA0Rhag01tsUqpcXRftRM1f551lES8bVRB6FMyw9a0T5RZKDvAVW IIhPHBFj55cce9dZb5Ms71lwnz2TfE310Ith4LJibWQTCeNL9BS8qlqdQxad3eh+sUaA /RAA== 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=e4r7ppbNQ5bCIh8kmEFrOvVDHiz8LI+gSojogOoyrsQ=; b=q46lXl6w+7vBY5E8iN/Z4M+nUZCjhCpvZwnyjBoi2QpDANlwI9It7FpdC/2fZc9E8v lR/K7ayz5qXwCdKA0nY3G53D1DhypHc5pjG/xtvYX/k0g+K2n7BoGFjfKvejHCVVY7E1 BS01tvJgoUxV3HwBGaxScxUXrPcad3HuRHiGyFmuTSP0QhZhVU5Mpx5hoSSJchlcqO83 9j2eRGiMPqwAJNuKz8otmVQi3pPZUkJplOBziN15FLyM4Mu3uKSd0YDLNvyLuUUfrV9Y jxCwvwjTxrzK5ckl1ufAjIRy2EA3EsIW0QYl0DYWuHI2dGA22qqssPCPWOdheFJnspog 2eBA== X-Gm-Message-State: ALQs6tCT3yKRU8zWjDzQ3wbEc+F/lXoLG36FpYc1TTNmxrtdYEoU7OQZ tsYGMyrcPITmnasTfxBkr+23IK3m X-Google-Smtp-Source: AIpwx48cQBGDZUgqmPkCTr1WYem2WmBrgXGM5PaEBiIovCT8E7Nvtm4H+CbaWC3SayTGH/YlFYrVdg== X-Received: by 2002:adf:a617:: with SMTP id k23-v6mr2785485wrc.200.1524085085202; Wed, 18 Apr 2018 13:58:05 -0700 (PDT) From: Radostin Stoyanov To: libvir-list@redhat.com Date: Wed, 18 Apr 2018 21:57:47 +0100 Message-Id: <20180418205747.28848-10-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.26]); Wed, 18 Apr 2018 20:58:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 18 Apr 2018 20:58:06 +0000 (UTC) for IP:'209.85.128.193' DOMAIN:'mail-wr0-f193.google.com' HELO:'mail-wr0-f193.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.193 mail-wr0-f193.google.com 209.85.128.193 mail-wr0-f193.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 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 9/9] docker: Add missing import base64 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.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Wed, 18 Apr 2018 20:58:57 +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" Signed-off-by: Radostin Stoyanov --- libvirt_sandbox_image/sources/docker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libvirt_sandbox_image/sources/docker.py b/libvirt_sandbox_imag= e/sources/docker.py index 3ca1b10..8a231ee 100755 --- a/libvirt_sandbox_image/sources/docker.py +++ b/libvirt_sandbox_image/sources/docker.py @@ -20,6 +20,7 @@ # Author: Eren Yagdiran # =20 +import base64 import sys import json import os --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list