# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../Doc/library/plistlib.rst:2 msgid ":mod:`plistlib` --- Generate and parse Mac OS X ``.plist`` files" msgstr "" #: ../Doc/library/plistlib.rst:11 msgid "**Source code:** :source:`Lib/plistlib.py`" msgstr "**Code source :** :source:`Lib/plistlib.py`" #: ../Doc/library/plistlib.rst:19 msgid "" "This module provides an interface for reading and writing the \"property list" "\" files used mainly by Mac OS X and supports both binary and XML plist " "files." msgstr "" #: ../Doc/library/plistlib.rst:22 msgid "" "The property list (``.plist``) file format is a simple serialization " "supporting basic object types, like dictionaries, lists, numbers and " "strings. Usually the top level object is a dictionary." msgstr "" #: ../Doc/library/plistlib.rst:26 msgid "" "To write out and to parse a plist file, use the :func:`dump` and :func:" "`load` functions." msgstr "" #: ../Doc/library/plistlib.rst:29 msgid "" "To work with plist data in bytes objects, use :func:`dumps` and :func:" "`loads`." msgstr "" #: ../Doc/library/plistlib.rst:32 msgid "" "Values can be strings, integers, floats, booleans, tuples, lists, " "dictionaries (but only with string keys), :class:`Data`, :class:`bytes`, :" "class:`bytesarray` or :class:`datetime.datetime` objects." msgstr "" #: ../Doc/library/plistlib.rst:36 msgid "New API, old API deprecated. Support for binary format plists added." msgstr "" #: ../Doc/library/plistlib.rst:41 msgid "" "`PList manual page `_" msgstr "" #: ../Doc/library/plistlib.rst:42 msgid "Apple's documentation of the file format." msgstr "" #: ../Doc/library/plistlib.rst:45 msgid "This module defines the following functions:" msgstr "" #: ../Doc/library/plistlib.rst:49 msgid "" "Read a plist file. *fp* should be a readable and binary file object. Return " "the unpacked root object (which usually is a dictionary)." msgstr "" #: ../Doc/library/plistlib.rst:53 msgid "The *fmt* is the format of the file and the following values are valid:" msgstr "" #: ../Doc/library/plistlib.rst:55 msgid ":data:`None`: Autodetect the file format" msgstr "" #: ../Doc/library/plistlib.rst:57 msgid ":data:`FMT_XML`: XML file format" msgstr "" #: ../Doc/library/plistlib.rst:59 msgid ":data:`FMT_BINARY`: Binary plist format" msgstr "" #: ../Doc/library/plistlib.rst:61 msgid "" "If *use_builtin_types* is true (the default) binary data will be returned as " "instances of :class:`bytes`, otherwise it is returned as instances of :class:" "`Data`." msgstr "" #: ../Doc/library/plistlib.rst:65 msgid "" "The *dict_type* is the type used for dictionaries that are read from the " "plist file." msgstr "" #: ../Doc/library/plistlib.rst:68 msgid "" "XML data for the :data:`FMT_XML` format is parsed using the Expat parser " "from :mod:`xml.parsers.expat` -- see its documentation for possible " "exceptions on ill-formed XML. Unknown elements will simply be ignored by " "the plist parser." msgstr "" #: ../Doc/library/plistlib.rst:73 msgid "" "The parser for the binary format raises :exc:`InvalidFileException` when the " "file cannot be parsed." msgstr "" #: ../Doc/library/plistlib.rst:81 msgid "" "Load a plist from a bytes object. See :func:`load` for an explanation of the " "keyword arguments." msgstr "" #: ../Doc/library/plistlib.rst:89 msgid "" "Write *value* to a plist file. *Fp* should be a writable, binary file object." msgstr "" #: ../Doc/library/plistlib.rst:92 msgid "" "The *fmt* argument specifies the format of the plist file and can be one of " "the following values:" msgstr "" #: ../Doc/library/plistlib.rst:95 msgid ":data:`FMT_XML`: XML formatted plist file" msgstr "" #: ../Doc/library/plistlib.rst:97 msgid ":data:`FMT_BINARY`: Binary formatted plist file" msgstr "" #: ../Doc/library/plistlib.rst:99 msgid "" "When *sort_keys* is true (the default) the keys for dictionaries will be " "written to the plist in sorted order, otherwise they will be written in the " "iteration order of the dictionary." msgstr "" #: ../Doc/library/plistlib.rst:103 msgid "" "When *skipkeys* is false (the default) the function raises :exc:`TypeError` " "when a key of a dictionary is not a string, otherwise such keys are skipped." msgstr "" #: ../Doc/library/plistlib.rst:106 msgid "" "A :exc:`TypeError` will be raised if the object is of an unsupported type or " "a container that contains objects of unsupported types." msgstr "" #: ../Doc/library/plistlib.rst:109 msgid "" "An :exc:`OverflowError` will be raised for integer values that cannot be " "represented in (binary) plist files." msgstr "" #: ../Doc/library/plistlib.rst:117 msgid "" "Return *value* as a plist-formatted bytes object. See the documentation for :" "func:`dump` for an explanation of the keyword arguments of this function." msgstr "" #: ../Doc/library/plistlib.rst:123 msgid "The following functions are deprecated:" msgstr "" #: ../Doc/library/plistlib.rst:127 msgid "" "Read a plist file. *pathOrFile* may be either a file name or a (readable and " "binary) file object. Returns the unpacked root object (which usually is a " "dictionary)." msgstr "" #: ../Doc/library/plistlib.rst:131 msgid "" "This function calls :func:`load` to do the actual work, see the " "documentation of :func:`that function ` for an explanation of the " "keyword arguments." msgstr "" #: ../Doc/library/plistlib.rst:134 msgid "Use :func:`load` instead." msgstr "" #: ../Doc/library/plistlib.rst:136 ../Doc/library/plistlib.rst:157 msgid "" "Dict values in the result are now normal dicts. You no longer can use " "attribute access to access items of these dictionaries." msgstr "" #: ../Doc/library/plistlib.rst:143 msgid "" "Write *rootObject* to an XML plist file. *pathOrFile* may be either a file " "name or a (writable and binary) file object" msgstr "" #: ../Doc/library/plistlib.rst:146 msgid "Use :func:`dump` instead." msgstr "" #: ../Doc/library/plistlib.rst:151 msgid "Read a plist data from a bytes object. Return the root object." msgstr "" #: ../Doc/library/plistlib.rst:153 msgid "See :func:`load` for a description of the keyword arguments." msgstr "" #: ../Doc/library/plistlib.rst:155 msgid "Use :func:`loads` instead." msgstr "" #: ../Doc/library/plistlib.rst:164 msgid "Return *rootObject* as an XML plist-formatted bytes object." msgstr "" #: ../Doc/library/plistlib.rst:166 msgid "Use :func:`dumps` instead." msgstr "" #: ../Doc/library/plistlib.rst:169 msgid "The following classes are available:" msgstr "" #: ../Doc/library/plistlib.rst:173 msgid "" "Return a \"data\" wrapper object around the bytes object *data*. This is " "used in functions converting from/to plists to represent the ```` type " "available in plists." msgstr "" #: ../Doc/library/plistlib.rst:177 msgid "" "It has one attribute, :attr:`data`, that can be used to retrieve the Python " "bytes object stored in it." msgstr "" #: ../Doc/library/plistlib.rst:180 msgid "Use a :class:`bytes` object instead." msgstr "" #: ../Doc/library/plistlib.rst:183 msgid "The following constants are available:" msgstr "" #: ../Doc/library/plistlib.rst:187 msgid "The XML format for plist files." msgstr "" #: ../Doc/library/plistlib.rst:194 msgid "The binary format for plist files" msgstr "" #: ../Doc/library/plistlib.rst:200 msgid "Examples" msgstr "Exemples" #: ../Doc/library/plistlib.rst:202 msgid "Generating a plist::" msgstr "" #: ../Doc/library/plistlib.rst:222 msgid "Parsing a plist::" msgstr ""