class documentation
class ToolboxSettings(StandardFormat): (source)
This class is the base class for settings files.
Method | __init__ |
Undocumented |
Method | parse |
Return the contents of toolbox settings file with a nested structure. |
Inherited from StandardFormat
:
Method | close |
Close a previously opened standard format marker file or string. |
Method | fields |
Return an iterator that returns the next field in a (marker, value) tuple, where marker and value are unicode strings if an encoding was specified in the fields() method. Otherwise they are non-unicode strings. |
Method | open |
Open a standard format marker file for sequential reading. |
Method | open |
Open a standard format marker string for sequential reading. |
Method | raw |
Return an iterator that returns the next field in a (marker, value) tuple. Linebreaks and trailing white space are preserved except for the final newline in each field. |
Instance Variable | line |
Undocumented |
Instance Variable | _encoding |
Undocumented |
Instance Variable | _file |
Undocumented |
Return the contents of toolbox settings file with a nested structure.
Parameters | |
encoding:str | encoding used by settings file |
errors:str | Error handling scheme for codec. Same as decode() builtin method. |
**kwargs:dict | Keyword arguments passed to StandardFormat.fields() |
Returns | |
ElementTree._ElementInterface | Undocumented |