summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-06-18 07:00:15 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-06-18 07:00:15 -0400
commit67328f5ced711292de7484e5609112d8b7009c84 (patch)
treed1e4248d9c4f2a6891fc2b32f24d604c3b92e3bd
parent851469e8fe893d3a5e8fb3be8d3118ac1755b223 (diff)
downloadpython-coveragepy-git-67328f5ced711292de7484e5609112d8b7009c84.tar.gz
Add a missing docstring. Pylint didn't mind??
--HG-- branch : django
-rw-r--r--coverage/config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 60ec3f41..372439a6 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -21,6 +21,15 @@ class HandyConfigParser(configparser.RawConfigParser):
return configparser.RawConfigParser.read(self, filename, **kwargs)
def get(self, *args, **kwargs):
+ """Get a value, replacing environment variables also.
+
+ The arguments are the same as `RawConfigParser.get`, but in the found
+ value, ``$WORD`` or ``${WORD}`` are replaced by the value of the
+ environment variable ``WORD``.
+
+ Returns the finished value.
+
+ """
v = configparser.RawConfigParser.get(self, *args, **kwargs)
def dollar_replace(m):
"""Called for each $replacement."""