File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1880,8 +1880,7 @@ <h1><a class="toc-backref" href="#id78">10 Empty values</a></h1
18801880< div class ="section " id ="unrepr-mode ">
18811881< h1 > < a class ="toc-backref " href ="#id79 "> 11 unrepr mode</ a > </ h1 >
18821882< p > The < tt class ="docutils literal "> unrepr</ tt > option allows you to store and retrieve the basic Python
1883- data-types using config files. It has to use a slightly different syntax to
1884- normal ConfigObj files. Unsurprisingly it uses Python syntax.</ p >
1883+ data-types using config files. It has to use a slightly different syntax as compared to normal ConfigObj files though it is still Python syntax.</ p >
18851884< p > This means that lists are different (they are surrounded by square brackets),
18861885and strings < em > must</ em > be quoted.</ p >
18871886< p > The types that < tt class ="docutils literal "> unrepr</ tt > can work with are :</ p >
@@ -1897,7 +1896,7 @@ <h1><a class="toc-backref" href="#id79">11 unrepr mode</a></h1>
18971896< p > < tt class ="docutils literal "> unrepr</ tt > uses < tt class ="docutils literal "> repr(object)</ tt > to write out values, so it currently < em > doesn't</ em >
18981897check that you are writing valid objects. If you attempt to read an unsupported
18991898value, ConfigObj will raise a < tt class ="docutils literal "> configobj.UnknownType</ tt > exception.</ p >
1900- < p > Values that are triple quoted cased . The triple quotes are removed < em > before</ em >
1899+ < p > Values that are enclosed in triple quotes are handlded as a special case . The triple quotes are removed < em > before</ em >
19011900converting. This means that you can use triple quotes to write dictionaries
19021901over several lines in your config files. They won't be written like this
19031902though.</ p >
Original file line number Diff line number Diff line change @@ -1957,8 +1957,8 @@ unrepr mode
19571957===========
19581958
19591959The ``unrepr `` option allows you to store and retrieve the basic Python
1960- data-types using config files. It has to use a slightly different syntax to
1961- normal ConfigObj files. Unsurprisingly it uses Python syntax.
1960+ data-types using config files. It has to use a slightly different syntax as compared to
1961+ normal ConfigObj files though it is still Python syntax.
19621962
19631963This means that lists are different (they are surrounded by square brackets),
19641964and strings *must * be quoted.
You can’t perform that action at this time.
0 commit comments