From nobody Mon Dec 15 01:52:40 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 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