2016-10-30 09:46:26 +00:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
msgid ""
|
|
|
|
msgstr ""
|
|
|
|
"Project-Id-Version: Python 3.6\n"
|
|
|
|
"Report-Msgid-Bugs-To: \n"
|
2017-05-27 17:46:38 +00:00
|
|
|
"POT-Creation-Date: 2017-05-27 19:40+0200\n"
|
2017-05-27 12:17:28 +00:00
|
|
|
"PO-Revision-Date: 2017-05-27 13:59+0200\n"
|
2017-05-27 17:46:38 +00:00
|
|
|
"Last-Translator: Julien Palard <julien@palard.fr>\n"
|
|
|
|
"Language-Team: \n"
|
2017-05-23 22:40:56 +00:00
|
|
|
"Language: fr\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
"MIME-Version: 1.0\n"
|
|
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
|
|
"Content-Transfer-Encoding: 8bit\n"
|
2017-05-27 12:17:28 +00:00
|
|
|
"X-Generator: Poedit 1.8.11\n"
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:4
|
|
|
|
msgid "2to3 - Automated Python 2 to 3 code translation"
|
|
|
|
msgstr "2to3 - Automatise la traduction du code de Python 2 vers Python 3"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:8
|
|
|
|
msgid ""
|
|
|
|
"2to3 is a Python program that reads Python 2.x source code and applies a "
|
|
|
|
"series of *fixers* to transform it into valid Python 3.x code. The standard "
|
|
|
|
"library contains a rich set of fixers that will handle almost all code. "
|
|
|
|
"2to3 supporting library :mod:`lib2to3` is, however, a flexible and generic "
|
|
|
|
"library, so it is possible to write your own fixers for 2to3. :mod:"
|
|
|
|
"`lib2to3` could also be adapted to custom applications in which Python code "
|
|
|
|
"needs to be edited automatically."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:20
|
|
|
|
msgid "Using 2to3"
|
|
|
|
msgstr "Utilisation de 2to3"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:22
|
|
|
|
msgid ""
|
|
|
|
"2to3 will usually be installed with the Python interpreter as a script. It "
|
|
|
|
"is also located in the :file:`Tools/scripts` directory of the Python root."
|
|
|
|
msgstr ""
|
|
|
|
"2to3 sera généralement installé avec l'interpréteur Python en temps que "
|
|
|
|
"script. Il est également situé dans le dossier :file:`Tools/scripts` à "
|
|
|
|
"racine de Python."
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:25
|
|
|
|
msgid ""
|
|
|
|
"2to3's basic arguments are a list of files or directories to transform. The "
|
|
|
|
"directories are recursively traversed for Python sources."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:28
|
|
|
|
msgid "Here is a sample Python 2.x source file, :file:`example.py`::"
|
|
|
|
msgstr "Voici un exemple de fichier source Python 2.x, :file:`example.py`::"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:36
|
|
|
|
msgid "It can be converted to Python 3.x code via 2to3 on the command line:"
|
|
|
|
msgstr ""
|
|
|
|
"Il peut être converti en code Python 3.x par 2to3 en ligne de commande :"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:42
|
|
|
|
msgid ""
|
|
|
|
"A diff against the original source file is printed. 2to3 can also write the "
|
|
|
|
"needed modifications right back to the source file. (A backup of the "
|
2017-04-02 20:14:06 +00:00
|
|
|
"original file is made unless :option:`!-n` is also given.) Writing the "
|
|
|
|
"changes back is enabled with the :option:`!-w` flag:"
|
2016-10-30 09:46:26 +00:00
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:51
|
|
|
|
msgid "After transformation, :file:`example.py` looks like this::"
|
|
|
|
msgstr "Après transformation, :file:`example.py` ressemble à : ::"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:59
|
|
|
|
msgid ""
|
|
|
|
"Comments and exact indentation are preserved throughout the translation "
|
|
|
|
"process."
|
|
|
|
msgstr ""
|
|
|
|
"Les commentaires et les retraits sont préservés tout au long du processus de "
|
|
|
|
"traduction."
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:61
|
|
|
|
msgid ""
|
|
|
|
"By default, 2to3 runs a set of :ref:`predefined fixers <2to3-fixers>`. The :"
|
|
|
|
"option:`!-l` flag lists all available fixers. An explicit set of fixers to "
|
2017-04-02 20:14:06 +00:00
|
|
|
"run can be given with :option:`!-f`. Likewise the :option:`!-x` explicitly "
|
2016-10-30 09:46:26 +00:00
|
|
|
"disables a fixer. The following example runs only the ``imports`` and "
|
|
|
|
"``has_key`` fixers:"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:70
|
|
|
|
msgid "This command runs every fixer except the ``apply`` fixer:"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:76
|
|
|
|
msgid ""
|
|
|
|
"Some fixers are *explicit*, meaning they aren't run by default and must be "
|
|
|
|
"listed on the command line to be run. Here, in addition to the default "
|
|
|
|
"fixers, the ``idioms`` fixer is run:"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:84
|
|
|
|
msgid "Notice how passing ``all`` enables all default fixers."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:86
|
|
|
|
msgid ""
|
|
|
|
"Sometimes 2to3 will find a place in your source code that needs to be "
|
|
|
|
"changed, but 2to3 cannot fix automatically. In this case, 2to3 will print a "
|
|
|
|
"warning beneath the diff for a file. You should address the warning in "
|
|
|
|
"order to have compliant 3.x code."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:91
|
|
|
|
msgid ""
|
|
|
|
"2to3 can also refactor doctests. To enable this mode, use the :option:`!-d` "
|
|
|
|
"flag. Note that *only* doctests will be refactored. This also doesn't "
|
|
|
|
"require the module to be valid Python. For example, doctest like examples "
|
|
|
|
"in a reST document could also be refactored with this option."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:96
|
|
|
|
msgid ""
|
|
|
|
"The :option:`!-v` option enables output of more information on the "
|
|
|
|
"translation process."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:99
|
|
|
|
msgid ""
|
|
|
|
"Since some print statements can be parsed as function calls or statements, "
|
|
|
|
"2to3 cannot always read files containing the print function. When 2to3 "
|
|
|
|
"detects the presence of the ``from __future__ import print_function`` "
|
|
|
|
"compiler directive, it modifies its internal grammar to interpret :func:"
|
|
|
|
"`print` as a function. This change can also be enabled manually with the :"
|
2017-04-02 20:14:06 +00:00
|
|
|
"option:`!-p` flag. Use :option:`!-p` to run fixers on code that already has "
|
2016-10-30 09:46:26 +00:00
|
|
|
"had its print statements converted."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:107
|
|
|
|
msgid ""
|
2017-04-02 20:14:06 +00:00
|
|
|
"The :option:`!-o` or :option:`!--output-dir` option allows specification of "
|
|
|
|
"an alternate directory for processed output files to be written to. The :"
|
|
|
|
"option:`!-n` flag is required when using this as backup files do not make "
|
2016-10-30 09:46:26 +00:00
|
|
|
"sense when not overwriting the input files."
|
|
|
|
msgstr ""
|
2017-05-27 12:17:28 +00:00
|
|
|
"L'option :option:`!-o` ou :option:`!--output-dir` permet de donner autre "
|
|
|
|
"répertoire pour les fichiers de sortie en écriture. L'option :option:`!-n` "
|
|
|
|
"est requise quand on les utilise comme fichiers de sauvegarde qui n'ont pas "
|
2016-10-30 09:46:26 +00:00
|
|
|
"de sens si les fichiers d'entrée ne sont pas écrasés."
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:112
|
2017-04-02 20:14:06 +00:00
|
|
|
msgid "The :option:`!-o` option was added."
|
2017-05-27 12:17:28 +00:00
|
|
|
msgstr "L'option :option:`!-o` a été ajoutée."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:115
|
|
|
|
msgid ""
|
2017-04-02 20:14:06 +00:00
|
|
|
"The :option:`!-W` or :option:`!--write-unchanged-files` flag tells 2to3 to "
|
2016-10-30 09:46:26 +00:00
|
|
|
"always write output files even if no changes were required to the file. "
|
2017-04-02 20:14:06 +00:00
|
|
|
"This is most useful with :option:`!-o` so that an entire Python source tree "
|
2016-10-30 09:46:26 +00:00
|
|
|
"is copied with translation from one directory to another. This option "
|
2017-04-02 20:14:06 +00:00
|
|
|
"implies the :option:`!-w` flag as it would not make sense otherwise."
|
2016-10-30 09:46:26 +00:00
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:121
|
|
|
|
msgid "The :option:`!-W` flag was added."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:124
|
|
|
|
msgid ""
|
2017-04-02 20:14:06 +00:00
|
|
|
"The :option:`!--add-suffix` option specifies a string to append to all "
|
|
|
|
"output filenames. The :option:`!-n` flag is required when specifying this "
|
|
|
|
"as backups are not necessary when writing to different filenames. Example:"
|
2016-10-30 09:46:26 +00:00
|
|
|
msgstr ""
|
2017-05-27 12:17:28 +00:00
|
|
|
"L'option :option:`!--add-suffix` spécifie une chaîne à ajouter à tous les "
|
|
|
|
"noms de fichiers de sortie. L'option :option:`!-n` est nécessaire dans ce "
|
|
|
|
"cas, puisque sauvegarder n'est pas nécessaire en écrivant dans des fichiers "
|
2016-10-30 09:46:26 +00:00
|
|
|
"différents. Exemple:"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:132
|
|
|
|
msgid "Will cause a converted file named ``example.py3`` to be written."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:134
|
2017-04-02 20:14:06 +00:00
|
|
|
msgid "The :option:`!--add-suffix` option was added."
|
2017-05-27 12:17:28 +00:00
|
|
|
msgstr "L'option :option:`!--add-suffix` est ajoutée."
|
2016-10-30 09:46:26 +00:00
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:137
|
|
|
|
msgid "To translate an entire project from one directory tree to another use:"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:147
|
|
|
|
msgid "Fixers"
|
|
|
|
msgstr " Correcteurs"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:149
|
|
|
|
msgid ""
|
|
|
|
"Each step of transforming code is encapsulated in a fixer. The command "
|
|
|
|
"``2to3 -l`` lists them. As :ref:`documented above <2to3-using>`, each can "
|
|
|
|
"be turned on and off individually. They are described here in more detail."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:156
|
|
|
|
msgid ""
|
|
|
|
"Removes usage of :func:`apply`. For example ``apply(function, *args, "
|
|
|
|
"**kwargs)`` is converted to ``function(*args, **kwargs)``."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:161
|
|
|
|
msgid "Replaces deprecated :mod:`unittest` method names with the correct ones."
|
|
|
|
msgstr ""
|
|
|
|
"Remplace les noms de méthodes obsolètes du module :mod:`unittest` par les "
|
|
|
|
"bons."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:164 ../Doc/library/2to3.rst:351
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "From"
|
|
|
|
msgstr "De"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:164 ../Doc/library/2to3.rst:351
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "To"
|
|
|
|
msgstr "À"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:166
|
|
|
|
msgid "``failUnlessEqual(a, b)``"
|
|
|
|
msgstr "``failUnlessEqual(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:166 ../Doc/library/2to3.rst:168
|
|
|
|
msgid ":meth:`assertEqual(a, b) <unittest.TestCase.assertEqual>`"
|
|
|
|
msgstr ":meth:`assertEqual(a, b) <unittest.TestCase.assertEqual>`"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:168
|
|
|
|
msgid "``assertEquals(a, b)``"
|
|
|
|
msgstr "``assertEquals(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:170
|
|
|
|
msgid "``failIfEqual(a, b)``"
|
|
|
|
msgstr "``failIfEqual(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:170 ../Doc/library/2to3.rst:172
|
|
|
|
msgid ":meth:`assertNotEqual(a, b) <unittest.TestCase.assertNotEqual>`"
|
|
|
|
msgstr ":meth:`assertNotEqual(a, b) <unittest.TestCase.assertNotEqual>`"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:172
|
|
|
|
msgid "``assertNotEquals(a, b)``"
|
|
|
|
msgstr "``assertNotEquals(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:174
|
|
|
|
msgid "``failUnless(a)``"
|
|
|
|
msgstr "``failUnless(a)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:174 ../Doc/library/2to3.rst:176
|
|
|
|
msgid ":meth:`assertTrue(a) <unittest.TestCase.assertTrue>`"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:176
|
|
|
|
msgid "``assert_(a)``"
|
|
|
|
msgstr "``assert_(a)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:178
|
|
|
|
msgid "``failIf(a)``"
|
|
|
|
msgstr "``failIf(a)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:178
|
|
|
|
msgid ":meth:`assertFalse(a) <unittest.TestCase.assertFalse>`"
|
|
|
|
msgstr ":meth:`assertFalse(a) <unittest.TestCase.assertFalse>`"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:180
|
|
|
|
msgid "``failUnlessRaises(exc, cal)``"
|
|
|
|
msgstr "``failUnlessRaises(exc, cal)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:180
|
|
|
|
msgid ":meth:`assertRaises(exc, cal) <unittest.TestCase.assertRaises>`"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:182
|
|
|
|
msgid "``failUnlessAlmostEqual(a, b)``"
|
|
|
|
msgstr "``failUnlessAlmostEqual(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:182 ../Doc/library/2to3.rst:184
|
|
|
|
msgid ":meth:`assertAlmostEqual(a, b) <unittest.TestCase.assertAlmostEqual>`"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:184
|
|
|
|
msgid "``assertAlmostEquals(a, b)``"
|
|
|
|
msgstr "``assertAlmostEquals(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:186
|
|
|
|
msgid "``failIfAlmostEqual(a, b)``"
|
|
|
|
msgstr "``failIfAlmostEqual(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:186 ../Doc/library/2to3.rst:188
|
|
|
|
msgid ""
|
|
|
|
":meth:`assertNotAlmostEqual(a, b) <unittest.TestCase.assertNotAlmostEqual>`"
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:188
|
|
|
|
msgid "``assertNotAlmostEquals(a, b)``"
|
|
|
|
msgstr "``assertNotAlmostEquals(a, b)``"
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:194
|
|
|
|
msgid "Converts :class:`basestring` to :class:`str`."
|
|
|
|
msgstr "Convertit une :class:`basestring` en :class:`str`."
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:198
|
|
|
|
msgid ""
|
|
|
|
"Converts :class:`buffer` to :class:`memoryview`. This fixer is optional "
|
|
|
|
"because the :class:`memoryview` API is similar but not exactly the same as "
|
|
|
|
"that of :class:`buffer`."
|
|
|
|
msgstr ""
|
|
|
|
|
|
|
|
#: ../Doc/library/2to3.rst:204
|
|
|
|
msgid ""
|
|
|
|
"Fixes dictionary iteration methods. :meth:`dict.iteritems` is converted to :"
|
|
|
|
"meth:`dict.items`, :meth:`dict.iterkeys` to :meth:`dict.keys`, and :meth:"
|
|
|
|
"`dict.itervalues` to :meth:`dict.values`. Similarly, :meth:`dict."
|
|
|
|
"viewitems`, :meth:`dict.viewkeys` and :meth:`dict.viewvalues` are converted "
|
|
|
|
"respectively to :meth:`dict.items`, :meth:`dict.keys` and :meth:`dict."
|
|
|
|
"values`. It also wraps existing usages of :meth:`dict.items`, :meth:`dict."
|
|
|
|
"keys`, and :meth:`dict.values` in a call to :class:`list`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:214
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts ``except X, T`` to ``except X as T``."
|
|
|
|
msgstr "Convertit ``except X, T`` en ``except X as T``."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:218
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts the ``exec`` statement to the :func:`exec` function."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:222
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Removes usage of :func:`execfile`. The argument to :func:`execfile` is "
|
|
|
|
"wrapped in calls to :func:`open`, :func:`compile`, and :func:`exec`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:227
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Changes assignment of :attr:`sys.exitfunc` to use of the :mod:`atexit` "
|
|
|
|
"module."
|
|
|
|
msgstr ""
|
|
|
|
"change l'affectation de :attr:`sys.exitfunc` pour utiliser le module :mod:"
|
|
|
|
"`atexit`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:232
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Wraps :func:`filter` usage in a :class:`list` call."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:236
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Fixes function attributes that have been renamed. For example, "
|
|
|
|
"``my_function.func_closure`` is converted to ``my_function.__closure__``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:241
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Removes ``from __future__ import new_feature`` statements."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:245
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Renames :func:`os.getcwdu` to :func:`os.getcwd`."
|
|
|
|
msgstr "Renomme :func:`os.getcwdu` en :func:`os.getcwd`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:249
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Changes ``dict.has_key(key)`` to ``key in dict``."
|
|
|
|
msgstr "Change ``dict.has_key(key)`` en ``key in dict``."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:253
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"This optional fixer performs several transformations that make Python code "
|
|
|
|
"more idiomatic. Type comparisons like ``type(x) is SomeClass`` and "
|
|
|
|
"``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``. "
|
|
|
|
"``while 1`` becomes ``while True``. This fixer also tries to make use of :"
|
|
|
|
"func:`sorted` in appropriate places. For example, this block ::"
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:262
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "is changed to ::"
|
|
|
|
msgstr "est transformé en : ::"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:268
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Detects sibling imports and converts them to relative imports."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:272
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Handles module renames in the standard library."
|
|
|
|
msgstr "Gère les renommages de modules dans la bibliothèque standard."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:276
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Handles other modules renames in the standard library. It is separate from "
|
|
|
|
"the :2to3fixer:`imports` fixer only because of technical limitations."
|
|
|
|
msgstr ""
|
|
|
|
"Gères d'autres renomages de modules dans la bibliothèque standard. Il est "
|
|
|
|
"distinct de :2to3fixer:`imports` seulement en raison de limitations "
|
|
|
|
"techniques."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:281
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts ``input(prompt)`` to ``eval(input(prompt))``."
|
|
|
|
msgstr "Convertit ``input(prompt)`` en ``eval(input(prompt))``."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:285
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts :func:`intern` to :func:`sys.intern`."
|
|
|
|
msgstr "Convertit :func:`intern` en :func:`sys.intern`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:289
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Fixes duplicate types in the second argument of :func:`isinstance`. For "
|
|
|
|
"example, ``isinstance(x, (int, int))`` is converted to ``isinstance(x, "
|
|
|
|
"(int))``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:295
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and :"
|
|
|
|
"func:`itertools.imap`. Imports of :func:`itertools.ifilterfalse` are also "
|
|
|
|
"changed to :func:`itertools.filterfalse`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:301
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and :"
|
|
|
|
"func:`itertools.imap` to their built-in equivalents. :func:`itertools."
|
|
|
|
"ifilterfalse` is changed to :func:`itertools.filterfalse`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:307
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Renames :class:`long` to :class:`int`."
|
|
|
|
msgstr "Renomme :class:`long` en :class:`int`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:311
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Wraps :func:`map` in a :class:`list` call. It also changes ``map(None, x)`` "
|
|
|
|
"to ``list(x)``. Using ``from future_builtins import map`` disables this "
|
|
|
|
"fixer."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:317
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Converts the old metaclass syntax (``__metaclass__ = Meta`` in the class "
|
|
|
|
"body) to the new (``class X(metaclass=Meta)``)."
|
|
|
|
msgstr ""
|
|
|
|
"Convertit l'ancienne syntaxe de métaclasse (``__metaclass__ = Meta`` dans le "
|
|
|
|
"corps de la classe) à la nouvelle (``class X(metaclasse=Meta)``)."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:322
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Fixes old method attribute names. For example, ``meth.im_func`` is "
|
|
|
|
"converted to ``meth.__func__``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:327
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts the old not-equal syntax, ``<>``, to ``!=``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:331
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Converts the use of iterator's :meth:`~iterator.next` methods to the :func:"
|
|
|
|
"`next` function. It also renames :meth:`next` methods to :meth:`~iterator."
|
|
|
|
"__next__`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:337
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Renames :meth:`__nonzero__` to :meth:`~object.__bool__`."
|
|
|
|
msgstr "Renomme :meth:`__nonzero__` en :meth:`~object.__bool__`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:341
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts octal literals into the new syntax."
|
|
|
|
msgstr ""
|
|
|
|
"Convertit les nombre écrits littéralement en octal dans leur nouvelle "
|
|
|
|
"syntaxe."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:345
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Converts calls to various functions in the :mod:`operator` module to other, "
|
|
|
|
"but equivalent, function calls. When needed, the appropriate ``import`` "
|
|
|
|
"statements are added, e.g. ``import collections``. The following mapping "
|
|
|
|
"are made:"
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:353
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.isCallable(obj)``"
|
|
|
|
msgstr "``operator.isCallable(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:353
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``hasattr(obj, '__call__')``"
|
|
|
|
msgstr "``hasattr(obj, '__call__')``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:354
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.sequenceIncludes(obj)``"
|
|
|
|
msgstr "``operator.sequenceIncludes(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:354
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.contains(obj)``"
|
|
|
|
msgstr "``operator.contains(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:355
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.isSequenceType(obj)``"
|
|
|
|
msgstr "``operator.isSequenceType(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:355
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``isinstance(obj, collections.Sequence)``"
|
|
|
|
msgstr "``isinstance(obj, collections.Sequence)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:356
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.isMappingType(obj)``"
|
|
|
|
msgstr "``operator.isMappingType(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:356
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``isinstance(obj, collections.Mapping)``"
|
|
|
|
msgstr "``isinstance(obj, collections.Mapping)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:357
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.isNumberType(obj)``"
|
|
|
|
msgstr "``operator.isNumberType(obj)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:357
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``isinstance(obj, numbers.Number)``"
|
|
|
|
msgstr "``isinstance(obj, numbers.Number)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:358
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.repeat(obj, n)``"
|
|
|
|
msgstr "``operator.repeat(obj, n)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:358
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.mul(obj, n)``"
|
|
|
|
msgstr "``operator.mul(obj, n)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:359
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.irepeat(obj, n)``"
|
|
|
|
msgstr "``operator.irepeat(obj, n)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:359
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "``operator.imul(obj, n)``"
|
|
|
|
msgstr "``operator.imul(obj, n)``"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:364
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Add extra parenthesis where they are required in list comprehensions. For "
|
|
|
|
"example, ``[x for x in 1, 2]`` becomes ``[x for x in (1, 2)]``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:369
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts the ``print`` statement to the :func:`print` function."
|
|
|
|
msgstr "Convertit l'instruction ``print`` fonction :func:`print`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:373
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` to ``raise "
|
|
|
|
"E(V).with_traceback(T)``. If ``E`` is a tuple, the translation will be "
|
|
|
|
"incorrect because substituting tuples for exceptions has been removed in 3.0."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:379
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts :func:`raw_input` to :func:`input`."
|
|
|
|
msgstr "Convertit :func:`raw_input` en :func:`input`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:383
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Handles the move of :func:`reduce` to :func:`functools.reduce`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:387
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Converts :func:`reload` to :func:`imp.reload`."
|
|
|
|
msgstr "Convertit les appels à :func:`reload` en appels à :func:`imp.reload`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:391
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Changes :data:`sys.maxint` to :data:`sys.maxsize`."
|
|
|
|
msgstr "Change :data:`sys.maxint` en :data:`sys.maxsize`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:395
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Replaces backtick repr with the :func:`repr` function."
|
|
|
|
msgstr ""
|
|
|
|
"Remplace les accents graves utilisés comme ``repr`` par des appels à :func:"
|
|
|
|
"`repr`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:399
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Replaces use of the :class:`set` constructor with set literals. This fixer "
|
|
|
|
"is optional."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:404
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Renames :exc:`StandardError` to :exc:`Exception`."
|
|
|
|
msgstr "Renomme :exc:`StandardError` en :exc:`Exception`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:408
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, :data:"
|
|
|
|
"`sys.exc_traceback` to use :func:`sys.exc_info`."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:413
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Fixes the API change in generator's :meth:`throw` method."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:417
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Removes implicit tuple parameter unpacking. This fixer inserts temporary "
|
|
|
|
"variables."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:422
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Fixes code broken from the removal of some members in the :mod:`types` "
|
|
|
|
"module."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:427
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Renames :class:`unicode` to :class:`str`."
|
|
|
|
msgstr "Renomme :class:`unicode` en :class:`str`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:431
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Handles the rename of :mod:`urllib` and :mod:`urllib2` to the :mod:`urllib` "
|
|
|
|
"package."
|
|
|
|
msgstr ""
|
|
|
|
"Gère le renommage des paquets :mod:`urllib` et :mod:`urllib2` en :mod:"
|
|
|
|
"`urllib`"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:436
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Removes excess whitespace from comma separated items. This fixer is "
|
|
|
|
"optional."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:441
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Renames :func:`xrange` to :func:`range` and wraps existing :func:`range` "
|
|
|
|
"calls with :class:`list`."
|
|
|
|
msgstr ""
|
|
|
|
"Renomme la fonction :func:`xrange` en :func:`range` et encapsule les appels "
|
|
|
|
"à la fonction :func:`range` avec des appels à :class:`list`."
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:446
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "Changes ``for x in file.xreadlines()`` to ``for x in file``."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:450
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"Wraps :func:`zip` usage in a :class:`list` call. This is disabled when "
|
|
|
|
"``from future_builtins import zip`` appears."
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:455
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ":mod:`lib2to3` - 2to3's library"
|
|
|
|
msgstr ":mod:`lib2to3` - la bibliothèque de 2to3"
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:464
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid "**Source code:** :source:`Lib/lib2to3/`"
|
|
|
|
msgstr ""
|
|
|
|
|
2017-05-27 17:46:38 +00:00
|
|
|
#: ../Doc/library/2to3.rst:470
|
2016-10-30 09:46:26 +00:00
|
|
|
msgid ""
|
|
|
|
"The :mod:`lib2to3` API should be considered unstable and may change "
|
|
|
|
"drastically in the future."
|
|
|
|
msgstr ""
|