@@ -208,7 +208,7 @@ converters and customize the provided ones. [1]_
208208Fallback Values
209209---------------
210210
211- As with a dictionary, you can use a section's :meth: `get ` method to
211+ As with a dictionary, you can use a section's :meth: `~ConfigParser. get ` method to
212212provide fallback values:
213213
214214.. doctest ::
@@ -232,7 +232,7 @@ even if we specify a fallback:
232232 >>> topsecret.get(' CompressionLevel' , ' 3' )
233233 '9'
234234
235- One more thing to be aware of is that the parser-level :meth: `get ` method
235+ One more thing to be aware of is that the parser-level :meth: `~ConfigParser. get ` method
236236provides a custom, more complex interface, maintained for backwards
237237compatibility. When using this method, a fallback value can be provided via
238238the ``fallback `` keyword-only argument:
@@ -481,7 +481,7 @@ historical background and it's very likely that you will want to customize some
481481of the features.
482482
483483The most common way to change the way a specific config parser works is to use
484- the :meth: `__init__ ` options:
484+ the :meth: `! __init__ ` options:
485485
486486* *defaults *, default value: ``None ``
487487
@@ -491,7 +491,7 @@ the :meth:`__init__` options:
491491 the documented default.
492492
493493 Hint: if you want to specify default values for a specific section, use
494- :meth: `read_dict ` before you read the actual file.
494+ :meth: `~ConfigParser. read_dict ` before you read the actual file.
495495
496496* *dict_type *, default value: :class: `dict `
497497
@@ -635,8 +635,8 @@ the :meth:`__init__` options:
635635* *strict *, default value: ``True ``
636636
637637 When set to ``True ``, the parser will not allow for any section or option
638- duplicates while reading from a single source (using :meth: `read_file `,
639- :meth: `read_string ` or :meth: `read_dict `). It is recommended to use strict
638+ duplicates while reading from a single source (using :meth: `~ConfigParser. read_file `,
639+ :meth: `~ConfigParser. read_string ` or :meth: `~ConfigParser. read_dict `). It is recommended to use strict
640640 parsers in new applications.
641641
642642 .. versionchanged :: 3.2
@@ -697,7 +697,7 @@ the :meth:`__init__` options:
697697 desirable, users may define them in a subclass or pass a dictionary where each
698698 key is a name of the converter and each value is a callable implementing said
699699 conversion. For instance, passing ``{'decimal': decimal.Decimal} `` would add
700- :meth: `getdecimal ` on both the parser object and all section proxies. In
700+ :meth: `! getdecimal ` on both the parser object and all section proxies. In
701701 other words, it will be possible to write both
702702 ``parser_instance.getdecimal('section', 'key', fallback=0) `` and
703703 ``parser_instance['section'].getdecimal('key', 0) ``.
@@ -1062,11 +1062,11 @@ ConfigParser Objects
10621062 yielding Unicode strings (for example files opened in text mode).
10631063
10641064 Optional argument *source * specifies the name of the file being read. If
1065- not given and *f * has a :attr: `name ` attribute, that is used for
1065+ not given and *f * has a :attr: `! name ` attribute, that is used for
10661066 *source *; the default is ``'<???>' ``.
10671067
10681068 .. versionadded :: 3.2
1069- Replaces :meth: `readfp `.
1069+ Replaces :meth: `! readfp `.
10701070
10711071 .. method :: read_string(string, source='<string>')
10721072
@@ -1236,7 +1236,7 @@ ConfigParser Objects
12361236
12371237.. data :: MAX_INTERPOLATION_DEPTH
12381238
1239- The maximum depth for recursive interpolation for :meth: `get ` when the *raw *
1239+ The maximum depth for recursive interpolation for :meth: `~configparser.ConfigParser. get ` when the *raw *
12401240 parameter is false. This is relevant only when the default *interpolation *
12411241 is used.
12421242
@@ -1309,13 +1309,13 @@ Exceptions
13091309
13101310.. exception :: DuplicateSectionError
13111311
1312- Exception raised if :meth: `add_section ` is called with the name of a section
1312+ Exception raised if :meth: `~ConfigParser. add_section ` is called with the name of a section
13131313 that is already present or in strict parsers when a section if found more
13141314 than once in a single input file, string or dictionary.
13151315
13161316 .. versionadded :: 3.2
13171317 Optional ``source `` and ``lineno `` attributes and arguments to
1318- :meth: `__init__ ` were added.
1318+ :meth: `! __init__ ` were added.
13191319
13201320
13211321.. exception :: DuplicateOptionError
@@ -1368,7 +1368,7 @@ Exceptions
13681368 Exception raised when errors occur attempting to parse a file.
13691369
13701370 .. versionchanged :: 3.2
1371- The ``filename `` attribute and :meth: `__init__ ` argument were renamed to
1371+ The ``filename `` attribute and :meth: `! __init__ ` argument were renamed to
13721372 ``source `` for consistency.
13731373
13741374
0 commit comments