From 0fde702274b8c51e59561a8c395ac67a5a28653c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 30 Apr 2013 18:47:35 +0100 Subject: Expand the Settings.as_cp method description --- cliapp/settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cliapp/settings.py b/cliapp/settings.py index 0c54d84..9fb8a4c 100644 --- a/cliapp/settings.py +++ b/cliapp/settings.py @@ -741,7 +741,13 @@ class Settings(object): sys.exit(0) def as_cp(self): - '''Return a ConfigParser instance with current values of settings.''' + '''Return a ConfigParser instance with current values of settings. + + Any sections outside of ``[config]`` are preserved as is. This + lets the application use those as it wishes, and assign any + meanings it desires to the section names. + + ''' cp = ConfigParser.ConfigParser() cp.add_section('config') for name in self._canonical_names: -- cgit v1.2.1