X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=hooke%2Fconfig.py;fp=hooke%2Fconfig.py;h=a8d006dc53ea69e288083d944d6a242947849f9f;hp=5948974f101c4ef647612f121fb3c6c69cd34af6;hb=f35ab8638b8cf48a793f24006933ddd8de7686c4;hpb=77b87e6d2ec85ce01ff8950bff850315c0728704 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 """