From patchwork Tue Jul 1 18:14:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 366171 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C88C514009E for ; Wed, 2 Jul 2014 04:14:38 +1000 (EST) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id B9A361A013F for ; Wed, 2 Jul 2014 04:14:38 +1000 (EST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 5C4AC1A0019 for ; Wed, 2 Jul 2014 04:14:32 +1000 (EST) Received: by mail-wi0-f182.google.com with SMTP id bs8so8280776wib.3 for ; Tue, 01 Jul 2014 11:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=NnkQyyJ7lq9KJ0Kw0BDYgrbvZKgVWW4xzT1mSQJblto=; b=hnVmtNpnILsCculbGKrGAVgVw8OarlUz7ym8kLUBI3rdsN/E5157Jk+h/jHb5Ajwqt D+LzQi6MPjLmiLoymeNsJQoLZMCXlojSL5MonfxnDIAARgk/Yuyl/J9D9Wt7s3nPQOi6 M84yQP011lMQ2XIZ7w2U9v2xAniMApyDowCmbzBYSs8UAKmVFcFpt0SoNrdhYEhi7Wda VHRQHAabwTMq3hlmxSW193QDfCR53BFBY6Y1oeXWjCHC5qPYYWUeK+fVYeN6sGPQ2i9n Ab/kjaMowgh1+V6vFMSg0MVTp4ZSOasCPBfdKKnFlAYP60Za101nSVVQt35Sv0/xh5qL xAvg== X-Received: by 10.180.76.20 with SMTP id g20mr38768456wiw.7.1404238467954; Tue, 01 Jul 2014 11:14:27 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id p3sm49650327wjw.13.2014.07.01.11.14.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Jul 2014 11:14:27 -0700 (PDT) From: "Yann E. MORIN" To: patchwork@lists.ozlabs.org Subject: [PATCH 1/3] pwclient: rename variable CONFIG_FILES to be singular Date: Tue, 1 Jul 2014 20:14:23 +0200 Message-Id: <3e13adefc3b7fe0c9d0ea47ee616427fdfe0fa85.1404238250.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" We only support a single config file, so there is no need to have a plural in this variable. Also, we'll need to know what the default config file is, when we want to save it to migrate to the new format. Signed-off-by: "Yann E. MORIN" --- apps/patchwork/bin/pwclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 0c0ccaf..2104f59 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -34,7 +34,7 @@ import ConfigParser # for the URL to access. If that is unspecified, it will fallback to # the hardcoded default value specified here. DEFAULT_URL = "http://patchwork/xmlrpc/" -CONFIG_FILES = [os.path.expanduser('~/.pwclientrc')] +CONFIG_FILE = os.path.expanduser('~/.pwclientrc') class Filter: """Filter for selecting patches.""" @@ -351,7 +351,7 @@ def main(): url = DEFAULT_URL config = ConfigParser.ConfigParser() - config.read(CONFIG_FILES) + config.read([CONFIG_FILE]) # grab settings from config files if config.has_option('base', 'url'):