diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-07-01 20:14:23 +0200 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-04 08:37:46 +0800 |
commit | ce4e9c7096be1222592700cdad84cf35895159da (patch) | |
tree | d820b265333787cca3b50417fb6bb20b9435a9c1 | |
parent | a8219f8be78ad8faaa5ebcc91b5ec30b56b328e9 (diff) | |
download | patchwork-ce4e9c7096be1222592700cdad84cf35895159da.tar.bz2 patchwork-ce4e9c7096be1222592700cdad84cf35895159da.tar.xz |
pwclient: rename variable CONFIG_FILES to be singular
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" <yann.morin.1998@free.fr>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rwxr-xr-x | apps/patchwork/bin/pwclient | 4 |
1 files 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'): |