aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/config.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-11-16 14:12:12 +0100
committerGuido Günther <agx@sigxcpu.org>2016-11-16 14:12:12 +0100
commitf982ccbb8aea0902788256ff177300d6c6f196e2 (patch)
treeeaaaf6feab80186c90acf8d43815d12cde8db0ba /gbp/config.py
parent6f75d7c4f0f3719ab7b664cfc96b50bc44140a32 (diff)
Use cls consistently
So far we used a mixture of klass and cls to denote the class variable. Git-Dch: Ignore
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 8518e0ce..f1f71767 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -366,7 +366,7 @@ class GbpOptionParser(OptionParser):
list_opts = ['filter', 'component']
@classmethod
- def get_config_files(klass, no_local=False):
+ def get_config_files(cls, no_local=False):
"""
Get list of config files from the I{GBP_CONF_FILES} environment
variable.
@@ -394,7 +394,7 @@ class GbpOptionParser(OptionParser):
>>> if conf_backup is not None: os.environ['GBP_CONF_FILES'] = conf_backup
"""
envvar = os.environ.get('GBP_CONF_FILES')
- files = envvar.split(':') if envvar else [f for (f, _) in klass.def_config_files]
+ files = envvar.split(':') if envvar else [f for (f, _) in cls.def_config_files]
files = [os.path.expanduser(fname) for fname in files]
if no_local:
files = [fname for fname in files if fname.startswith('/')]