From 8165a5c9c3af1523a629b1ffa3e528f62ed04947 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 18 Jun 2014 07:00:15 -0400 Subject: Add a missing docstring. Pylint didn't mind?? --- coverage/config.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'coverage/config.py') 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.""" -- cgit v1.2.1