OpenQuizz
Une application de gestion des contenus pédagogiques
pip._vendor.toml.decoder Namespace Reference

Data Structures

class  CommentValue
 
class  InlineTableDict
 
class  TomlDecodeError
 
class  TomlDecoder
 
class  TomlPreserveCommentDecoder
 

Functions

def load (f, _dict=dict, decoder=None)
 
def loads (s, _dict=dict, decoder=None)
 

Variables

 unicode
 
 basestring
 
 unichr
 
 FNFError
 
 TIME_RE
 

Function Documentation

◆ load()

def pip._vendor.toml.decoder.load (   f,
  _dict = dict,
  decoder = None 
)
Parses named file or files as toml and returns a dictionary

Args:
    f: Path to the file to open, array of files to read into single dict
       or a file descriptor
    _dict: (optional) Specifies the class of the returned toml dictionary
    decoder: The decoder to use

Returns:
    Parsed toml file represented as a dictionary

Raises:
    TypeError -- When f is invalid type
    TomlDecodeError: Error while decoding toml
    IOError / FileNotFoundError -- When an array with no valid (existing)
    (Python 2 / Python 3)          file paths is passed

◆ loads()

def pip._vendor.toml.decoder.loads (   s,
  _dict = dict,
  decoder = None 
)
Parses string as toml

Args:
    s: String to be parsed
    _dict: (optional) Specifies the class of the returned toml dictionary

Returns:
    Parsed toml file represented as a dictionary

Raises:
    TypeError: When a non-string is passed
    TomlDecodeError: Error while decoding toml

Variable Documentation

◆ basestring

basestring

◆ FNFError

FNFError

◆ TIME_RE

TIME_RE

◆ unichr

unichr

◆ unicode

unicode