From nobody Tue May 14 17:35:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1574722650; cv=none; d=zohomail.com; s=zohoarc; b=YJmPuAyKeqRKquTd9esls2K18acE//fdR3GgDN20Yld5zxThQvwRIeYYuHR6zjPpWtPXUVrQNwdXXpFtEeGzTVaNrkSNc2d4zAWR5tk0op2kGCurl8ei8ToxfyKInwOgYmR5AIfeyPSq7p/fIrp6oc7KHyULJZoPlxcdgRspaSQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574722650; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ZQTnjlgt0BjVO69r26qEglw2c86b2cHL0VU5/2aWmoQ=; b=Zp38zoB2IY7lpYWQDJYycg938295DoMaZ8YHKfgDcogUUsLotWUA50marFxywfxogeUmww9UT/FAXNDExUOQ/8SNgCz2fD9O7ycWndNFxTSXf/p1QoY7jNFev5UU93i3R42FSlN90SA1eSiAenLjOfJ8RzPnzM8ZlAldkjGo93U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 157472265009491.51151492153122; Mon, 25 Nov 2019 14:57:30 -0800 (PST) Received: from localhost ([::1]:48930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZNIO-0006Mt-Bl for importer@patchew.org; Mon, 25 Nov 2019 17:57:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43453) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZNEu-0003Qv-DS for qemu-devel@nongnu.org; Mon, 25 Nov 2019 17:53:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZNEr-00036K-AT for qemu-devel@nongnu.org; Mon, 25 Nov 2019 17:53:51 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:34930 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iZNEo-00031N-7a for qemu-devel@nongnu.org; Mon, 25 Nov 2019 17:53:46 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-282-Lj-Rs3k_NnCqfwJiZ88YyA-1; Mon, 25 Nov 2019 17:53:40 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 96CFC1801BA9; Mon, 25 Nov 2019 22:53:39 +0000 (UTC) Received: from localhost (ovpn-116-101.gru2.redhat.com [10.97.116.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id AD64F5C1D8; Mon, 25 Nov 2019 22:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574722425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZQTnjlgt0BjVO69r26qEglw2c86b2cHL0VU5/2aWmoQ=; b=WC+k7hT8C5kFmvkBWqyIVIFzIpYKsJpUFoVW0QImY6mps1MTSsnx1PABpKSY145SPQEht/ ZLtu6UgAUYj7fgUA1pMPa36qRdqcTxOJMQK5KToKHRnxfmelYXOYHIqfbKBO6kuYdOCHqL VnJ+ebOHDDNJZgM+Vxx54AnoYMf/RT8= From: Eduardo Habkost To: Cleber Rosa , qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 1/1] vmstate-static-checker: Fix for current python Date: Mon, 25 Nov 2019 19:53:33 -0300 Message-Id: <20191125225333.322163-2-ehabkost@redhat.com> In-Reply-To: <20191125225333.322163-1-ehabkost@redhat.com> References: <20191125225333.322163-1-ehabkost@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: Lj-Rs3k_NnCqfwJiZ88YyA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Dr. David Alan Gilbert" , Eduardo Habkost , Juan Quintela Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" Python 3.7.5 on f31 doesn't seem to like the old type=3Dfile syntax on argparse. Signed-off-by: Dr. David Alan Gilbert Message-Id: <20191121185303.51685-1-dgilbert@redhat.com> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Cleber Rosa Signed-off-by: Eduardo Habkost --- scripts/vmstate-static-checker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/vmstate-static-checker.py b/scripts/vmstate-static-che= cker.py index d3467288dc..f8b7b8f772 100755 --- a/scripts/vmstate-static-checker.py +++ b/scripts/vmstate-static-checker.py @@ -375,9 +375,11 @@ def main(): help_text =3D "Parse JSON-formatted vmstate dumps from QEMU in files S= RC and DEST. Checks whether migration from SRC to DEST QEMU versions would= break based on the VMSTATE information contained within the JSON outputs. = The JSON output is created from a QEMU invocation with the -dump-vmstate p= arameter and a filename argument to it. Other parameters to QEMU do not ma= tter, except the -M (machine type) parameter." =20 parser =3D argparse.ArgumentParser(description=3Dhelp_text) - parser.add_argument('-s', '--src', type=3Dfile, required=3DTrue, + parser.add_argument('-s', '--src', type=3Dargparse.FileType('r'), + required=3DTrue, help=3D'json dump from src qemu') - parser.add_argument('-d', '--dest', type=3Dfile, required=3DTrue, + parser.add_argument('-d', '--dest', type=3Dargparse.FileType('r'), + required=3DTrue, help=3D'json dump from dest qemu') parser.add_argument('--reverse', required=3DFalse, default=3DFalse, action=3D'store_true', --=20 2.23.0