1
0
Fork 0
python-docs-fr/library/zipimport.po

203 lines
6.6 KiB
Plaintext

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2016, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/zipimport.rst:2
msgid ":mod:`zipimport` --- Import modules from Zip archives"
msgstr ""
#: ../Doc/library/zipimport.rst:11
msgid ""
"This module adds the ability to import Python modules (:file:`\\*.py`, :file:"
"`\\*.pyc`) and packages from ZIP-format archives. It is usually not needed "
"to use the :mod:`zipimport` module explicitly; it is automatically used by "
"the built-in :keyword:`import` mechanism for :data:`sys.path` items that are "
"paths to ZIP archives."
msgstr ""
#: ../Doc/library/zipimport.rst:17
msgid ""
"Typically, :data:`sys.path` is a list of directory names as strings. This "
"module also allows an item of :data:`sys.path` to be a string naming a ZIP "
"file archive. The ZIP archive can contain a subdirectory structure to "
"support package imports, and a path within the archive can be specified to "
"only import from a subdirectory. For example, the path :file:`example.zip/"
"lib/` would only import from the :file:`lib/` subdirectory within the "
"archive."
msgstr ""
#: ../Doc/library/zipimport.rst:24
msgid ""
"Any files may be present in the ZIP archive, but only files :file:`.py` and :"
"file:`.pyc` are available for import. ZIP import of dynamic modules (:file:"
"`.pyd`, :file:`.so`) is disallowed. Note that if an archive only contains :"
"file:`.py` files, Python will not attempt to modify the archive by adding "
"the corresponding :file:`.pyc` file, meaning that if a ZIP archive doesn't "
"contain :file:`.pyc` files, importing may be rather slow."
msgstr ""
#: ../Doc/library/zipimport.rst:31
msgid "ZIP archives with an archive comment are currently not supported."
msgstr ""
#: ../Doc/library/zipimport.rst:37
msgid ""
"`PKZIP Application Note <https://pkware.cachefly.net/webdocs/casestudies/"
"APPNOTE.TXT>`_"
msgstr ""
#: ../Doc/library/zipimport.rst:36
msgid ""
"Documentation on the ZIP file format by Phil Katz, the creator of the format "
"and algorithms used."
msgstr ""
#: ../Doc/library/zipimport.rst:42
msgid ":pep:`273` - Import Modules from Zip Archives"
msgstr ""
#: ../Doc/library/zipimport.rst:40
msgid ""
"Written by James C. Ahlstrom, who also provided an implementation. Python "
"2.3 follows the specification in PEP 273, but uses an implementation written "
"by Just van Rossum that uses the import hooks described in PEP 302."
msgstr ""
#: ../Doc/library/zipimport.rst:44
msgid ":pep:`302` - New Import Hooks"
msgstr ""
#: ../Doc/library/zipimport.rst:45
msgid "The PEP to add the import hooks that help this module work."
msgstr ""
#: ../Doc/library/zipimport.rst:48
msgid "This module defines an exception:"
msgstr ""
#: ../Doc/library/zipimport.rst:52
msgid ""
"Exception raised by zipimporter objects. It's a subclass of :exc:"
"`ImportError`, so it can be caught as :exc:`ImportError`, too."
msgstr ""
#: ../Doc/library/zipimport.rst:59
msgid "zipimporter Objects"
msgstr ""
#: ../Doc/library/zipimport.rst:61
msgid ":class:`zipimporter` is the class for importing ZIP files."
msgstr ""
#: ../Doc/library/zipimport.rst:65
msgid ""
"Create a new zipimporter instance. *archivepath* must be a path to a ZIP "
"file, or to a specific path within a ZIP file. For example, an "
"*archivepath* of :file:`foo/bar.zip/lib` will look for modules in the :file:"
"`lib` directory inside the ZIP file :file:`foo/bar.zip` (provided that it "
"exists)."
msgstr ""
#: ../Doc/library/zipimport.rst:70
msgid ""
":exc:`ZipImportError` is raised if *archivepath* doesn't point to a valid "
"ZIP archive."
msgstr ""
#: ../Doc/library/zipimport.rst:75
msgid ""
"Search for a module specified by *fullname*. *fullname* must be the fully "
"qualified (dotted) module name. It returns the zipimporter instance itself "
"if the module was found, or :const:`None` if it wasn't. The optional *path* "
"argument is ignored---it's there for compatibility with the importer "
"protocol."
msgstr ""
#: ../Doc/library/zipimport.rst:84
msgid ""
"Return the code object for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be found."
msgstr ""
#: ../Doc/library/zipimport.rst:90
msgid ""
"Return the data associated with *pathname*. Raise :exc:`OSError` if the file "
"wasn't found."
msgstr ""
#: ../Doc/library/zipimport.rst:93
msgid ":exc:`IOError` used to be raised instead of :exc:`OSError`."
msgstr ""
"Avant, c'était l'exception :exc:`IOError` qui était levée, au lieu de :exc:"
"`OSError`."
#: ../Doc/library/zipimport.rst:99
msgid ""
"Return the value ``__file__`` would be set to if the specified module was "
"imported. Raise :exc:`ZipImportError` if the module couldn't be found."
msgstr ""
#: ../Doc/library/zipimport.rst:108
msgid ""
"Return the source code for the specified module. Raise :exc:`ZipImportError` "
"if the module couldn't be found, return :const:`None` if the archive does "
"contain the module, but has no source for it."
msgstr ""
#: ../Doc/library/zipimport.rst:116
msgid ""
"Return ``True`` if the module specified by *fullname* is a package. Raise :"
"exc:`ZipImportError` if the module couldn't be found."
msgstr ""
#: ../Doc/library/zipimport.rst:122
msgid ""
"Load the module specified by *fullname*. *fullname* must be the fully "
"qualified (dotted) module name. It returns the imported module, or raises :"
"exc:`ZipImportError` if it wasn't found."
msgstr ""
#: ../Doc/library/zipimport.rst:129
msgid ""
"The file name of the importer's associated ZIP file, without a possible "
"subpath."
msgstr ""
#: ../Doc/library/zipimport.rst:135
msgid ""
"The subpath within the ZIP file where modules are searched. This is the "
"empty string for zipimporter objects which point to the root of the ZIP file."
msgstr ""
#: ../Doc/library/zipimport.rst:139
msgid ""
"The :attr:`archive` and :attr:`prefix` attributes, when combined with a "
"slash, equal the original *archivepath* argument given to the :class:"
"`zipimporter` constructor."
msgstr ""
#: ../Doc/library/zipimport.rst:147
msgid "Examples"
msgstr "Exemples"
#: ../Doc/library/zipimport.rst:149
msgid ""
"Here is an example that imports a module from a ZIP archive - note that the :"
"mod:`zipimport` module is not explicitly used."
msgstr ""