diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-18 07:00:15 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-06-18 07:00:15 -0400 |
commit | 8165a5c9c3af1523a629b1ffa3e528f62ed04947 (patch) | |
tree | a715e47e81c217c22ca0bc1314f08b5effba156d /coverage/config.py | |
parent | f3676e07d9e97ab7a7be581c1ac6e4e40435eaf4 (diff) | |
download | python-coveragepy-8165a5c9c3af1523a629b1ffa3e528f62ed04947.tar.gz |
Add a missing docstring. Pylint didn't mind??
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/config.py b/coverage/config.py index 60ec3f4..372439a 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.""" |