diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-07-01 12:55:30 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-07-01 12:55:30 -0400 |
commit | 8ef13ec8d489f876c4c335e0982d7acfe151a222 (patch) | |
tree | a7c7db033f7200db4d6b0a55af2b48b8a2c2758e /grs | |
parent | Clean up more exceptions. (diff) | |
download | grss-8ef13ec8d489f876c4c335e0982d7acfe151a222.tar.gz grss-8ef13ec8d489f876c4c335e0982d7acfe151a222.tar.bz2 grss-8ef13ec8d489f876c4c335e0982d7acfe151a222.zip |
grs/WorldConf.py: clean up variable name.
Diffstat (limited to 'grs')
-rw-r--r-- | grs/WorldConf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grs/WorldConf.py b/grs/WorldConf.py index ba683cd..d8140d8 100644 --- a/grs/WorldConf.py +++ b/grs/WorldConf.py @@ -14,7 +14,7 @@ class WorldConf(): """ @staticmethod - def conf2file(config, s, portage_dir): + def conf2file(config, s, portage_confdir): """ doc here more doc """ @@ -23,7 +23,7 @@ class WorldConf(): # a '+' at the beginging means append to the file undecorated_f = re.sub('^\+', '', f) - filepath = os.path.join(portage_dir, undecorated_f) + filepath = os.path.join(portage_confdir, undecorated_f) dirpath = os.path.dirname(filepath) os.makedirs(dirpath, mode=0o755, exist_ok=True) if f == undecorated_f or not os.path.exists(filepath): @@ -49,7 +49,7 @@ class WorldConf(): config.read(CONST.WORLD_CONFIG) for s in config.sections(): - WorldConf.conf2file(config, s, portage_dir=CONST.PORTAGE_CONFIGDIR) + WorldConf.conf2file(config, s, portage_confdir=CONST.PORTAGE_CONFIGDIR) @staticmethod |