From 3226a4777d0192db7cc4d6f2fa321259c04a2400 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 24 Sep 2015 20:40:31 +0000 Subject: [PATCH] fix literal rendering in dictionary options docs Fix the syntax error in the python example for dictionary options so pygments will render it properly. Use a code-block directive to tell pygments that the inline INI file is an INI file, since it does not figure that out automatically. Closes-Bug: #1413389 Change-Id: I16441739e6cbfe8ad497aa0860fbc85a4a2d8123 --- oslo_config/cfg.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oslo_config/cfg.py b/oslo_config/cfg.py index d8f88053..c5763531 100644 --- a/oslo_config/cfg.py +++ b/oslo_config/cfg.py @@ -274,11 +274,13 @@ use the DictOpt:: opts = [ cfg.DictOpt('foo', - default={})) + default={}) ] The end users can then specify the option foo in their configuration file -as shown below:: +as shown below: + +.. code-block:: ini [DEFAULT] foo = k1:v1,k2:v2