From 67328f5ced711292de7484e5609112d8b7009c84 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?? --HG-- branch : django --- 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 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.""" -- cgit v1.2.1