From patchwork Fri May 18 17:17:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seth Forshee X-Patchwork-Id: 10411663 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C0EC6031B for ; Fri, 18 May 2018 17:17:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3B1428932 for ; Fri, 18 May 2018 17:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D850C28963; Fri, 18 May 2018 17:17:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AABB28932 for ; Fri, 18 May 2018 17:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbeERRRa (ORCPT ); Fri, 18 May 2018 13:17:30 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35148 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750975AbeERRR3 (ORCPT ); Fri, 18 May 2018 13:17:29 -0400 Received: from mail-io0-f198.google.com ([209.85.223.198]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fJj0S-0006V4-FV for linux-wireless@vger.kernel.org; Fri, 18 May 2018 17:17:28 +0000 Received: by mail-io0-f198.google.com with SMTP id f9-v6so5717135iob.14 for ; Fri, 18 May 2018 10:17:28 -0700 (PDT) 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; bh=Yl8N0f0MP9n3LU2z9a5dl0OJfUHdNvAnJMCE1Eh7mFg=; b=mOyFvF8pQIgH0UQKBphC1XSKCp45/X+gKfJne+PQRJwSEvqK/9M5wLsAYvX0gAwiOC AZU5PQdq3VSbfKTI9YGfr0kKmA7TRpnzoHYVRrpiwYZqTBGgRkiosROKcnfz43bkBiMb R1JhZmDHMUBNqce8x13u+w1ukRxRUUqkKpk82p8DlIAknq9iMQv0m49D3O7n8hyUO1iS pU8fHaQvtC+ebinHi+z7yK76nwrGY33ETNSoPsJX5+vPg9sbrgfyUPnW9ktPOiGRYxaK Pvo4wzCTeO6F1xoAvICxd/RQ10SfAI1ayZVgZ9T9436ESsnOTdPmXRIjBZInxjKhobqZ sRtg== X-Gm-Message-State: ALKqPwcLQqMw2th6kvGLmFjuSLtT8sLA+LCZWpGvHMb7R1P6rWLX64Z7 7QU+CbZVPx5wmgRFk72IwNFgLx1KG+8j9APUTvJrMaSQ9N6kx2cqRpfT8KJNP+vX6sjA9lhWY7d Lwgqdc5/meHAajtHkut4NvUBAyYcmMHuZ2h4oDmWcziY8 X-Received: by 2002:a24:6bcb:: with SMTP id v194-v6mr8529250itc.66.1526663847497; Fri, 18 May 2018 10:17:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqIvWYOgL2hXsgc3993aOSQ3rGItbpDlqCaXa9/hO4bp/hdhQ00UCEtqQ+tZ6g+1CvZesr+1g== X-Received: by 2002:a24:6bcb:: with SMTP id v194-v6mr8529238itc.66.1526663847287; Fri, 18 May 2018 10:17:27 -0700 (PDT) Received: from localhost ([2605:a601:ac6:7f20:508d:6240:7edf:123]) by smtp.gmail.com with ESMTPSA id 12-v6sm5186526itm.23.2018.05.18.10.17.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 10:17:26 -0700 (PDT) From: Seth Forshee To: wireless-regdb@lists.infradead.org Cc: linux-wireless@vger.kernel.org Subject: [PATCH] wireless-regdb: Fix iteration in create_wmms() for python 3 Date: Fri, 18 May 2018 12:17:25 -0500 Message-Id: <20180518171725.28828-1-seth.forshee@canonical.com> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The iteration in this function is over countries.itervalues(), which is not compatible with python 3. Switch to iterating over contries.values() instead. Signed-off-by: Seth Forshee --- db2fw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db2fw.py b/db2fw.py index 269325604ea3..0c0f030c0c63 100755 --- a/db2fw.py +++ b/db2fw.py @@ -29,7 +29,7 @@ def create_collections(countries): def create_wmms(countries): result = {} - for c in countries.itervalues(): + for c in countries.values(): for rule in c.permissions: if rule.wmmrule is not None: result[rule.wmmrule] = 1