X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=hooke%2Fconfig.py;h=a8d006dc53ea69e288083d944d6a242947849f9f;hb=fd370c0ef71a554fdc950305bb9eb418ca6805e0;hp=5948974f101c4ef647612f121fb3c6c69cd34af6;hpb=8fd6046cf6e14aef820e949a1c485e2a4957db10;p=hooke.git diff --git a/hooke/config.py b/hooke/config.py index 5948974..a8d006d 100644 --- a/hooke/config.py +++ b/hooke/config.py @@ -137,7 +137,8 @@ class HookeConfigParser (configparser.RawConfigParser): >>> c = HookeConfigParser(default_settings=DEFAULT_SETTINGS) >>> c.write(sys.stdout) # doctest: +ELLIPSIS # Default environmental conditions in case they are not specified in - # the force curve data. + # the force curve data. Configuration options in this section are + # available to every plugin. [conditions] # Temperature in Kelvin temperature = 301 @@ -161,7 +162,7 @@ class HookeConfigParser (configparser.RawConfigParser): ... Setting(section, option='my float', value=3.14159, type='float'), ... ]) >>> pprint.pprint(c.items(section)) # doctest: +ELLIPSIS - [('my string', 'Lorem ipsum'), + [('my string', u'Lorem ipsum'), ('my bool', True), ('my int', 13), ('my float', 3.1415...)] @@ -170,7 +171,7 @@ class HookeConfigParser (configparser.RawConfigParser): to use the standard `.get*()` methods. >>> c.get('test conversion', 'my bool') - 'True' + u'True' >>> c.getboolean('test conversion', 'my bool') True """