1
0
Fork 0
python-docs-fr/library/2to3.po

814 lines
31 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-15 22:33+0100\n"
2022-11-14 15:08:57 +00:00
"PO-Revision-Date: 2022-10-18 15:44+0200\n"
"Last-Translator: Dimitri Merejkowsky <dimitri@dmerej.info>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\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"
"X-Generator: Poedit 2.4.1\n"
2016-10-30 09:46:26 +00:00
#: library/2to3.rst:4
#, fuzzy
msgid "2to3 --- Automated Python 2 to 3 code translation"
msgstr "*2to3* — Traduction automatique de code en Python 2 vers Python 3"
2016-10-30 09:46:26 +00:00
#: library/2to3.rst:8
2016-10-30 09:46:26 +00:00
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 "
2020-07-20 08:56:42 +00:00
"library, so it is possible to write your own fixers for 2to3."
2016-10-30 09:46:26 +00:00
msgstr ""
"*2to3* est un programme Python qui lit du code source en Python 2.x et "
"applique une suite de correcteurs pour le transformer en code Python 3.x "
"valide. La bibliothèque standard contient un ensemble riche de correcteurs "
"qui géreront quasiment tout le code. La bibliothèque :mod:`lib2to3` "
"utilisée par *2to3* est cependant une bibliothèque flexible et générique, il "
"est donc possible d'écrire vos propres correcteurs pour *2to3*."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:19
msgid ""
"The ``lib2to3`` module was marked pending for deprecation in Python 3.9 "
"(raising :exc:`PendingDeprecationWarning` on import) and fully deprecated in "
"Python 3.11 (raising :exc:`DeprecationWarning`). The ``2to3`` tool is part "
"of that. It will be removed in Python 3.13."
msgstr ""
#: library/2to3.rst:23
2016-10-30 09:46:26 +00:00
msgid "Using 2to3"
msgstr "Utilisation de *2to3*"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:25
2016-10-30 09:46:26 +00:00
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 ""
2018-10-04 13:34:27 +00:00
"*2to3* sera généralement installé avec l'interpréteur Python en tant que "
2016-10-30 09:46:26 +00:00
"script. Il est également situé dans le dossier :file:`Tools/scripts` à "
"racine de Python."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:28
2016-10-30 09:46:26 +00:00
msgid ""
"2to3's basic arguments are a list of files or directories to transform. The "
"directories are recursively traversed for Python sources."
msgstr ""
"Les arguments de base de *2to3* sont une liste de fichiers et de répertoires "
"à transformer. Les répertoires sont parcourus récursivement pour trouver "
"les sources Python."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:31
2016-10-30 09:46:26 +00:00
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` ::"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:39
2016-10-30 09:46:26 +00:00
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 :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:45
2016-10-30 09:46:26 +00:00
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 ""
"Une comparaison avec le fichier source original est affichée. *2to3* peut "
"aussi écrire les modifications nécessaires directement dans le fichier "
"source. (Une sauvegarde du fichier d'origine est effectuée à moins que "
"l'option :option:`!-n` soit également donnée.) L'écriture des modifications "
"est activée avec l'option :option:`!-w` :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:54
2016-10-30 09:46:26 +00:00
msgid "After transformation, :file:`example.py` looks like this::"
msgstr "Après transformation, :file:`example.py` ressemble à ::"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:62
2016-10-30 09:46:26 +00:00
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."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:64
2016-10-30 09:46:26 +00:00
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 ""
"Par défaut, *2to3* exécute un ensemble de :ref:`correcteurs prédéfinis <2to3-"
"fixers>`. L'option :option:`!-l` énumère tous les correcteurs disponibles. "
"Un ensemble explicite de correcteurs à exécuter peut être donné avec :option:"
"`!-f`. De même, :option:`!-x` désactive explicitement un correcteur. "
2019-06-02 11:06:43 +00:00
"L'exemple suivant exécute uniquement les ``import`` et les correcteurs "
"``has_key`` :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:73
2016-10-30 09:46:26 +00:00
msgid "This command runs every fixer except the ``apply`` fixer:"
msgstr ""
"Cette commande exécute tous les correcteurs, sauf le correcteurs ``apply`` :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:79
2016-10-30 09:46:26 +00:00
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 ""
"Certains correcteurs sont *explicites*, ce qui signifie qu'ils ne sont pas "
"exécutés par défaut et doivent être énumérés sur la ligne de commande à "
"exécuter. Ici, en plus des correcteurs par défaut, le correcteur ``idioms`` "
"est exécuté :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:87
2016-10-30 09:46:26 +00:00
msgid "Notice how passing ``all`` enables all default fixers."
msgstr "Notez que passer ``all`` active tous les correcteurs par défaut."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:89
2016-10-30 09:46:26 +00:00
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 ""
"Parfois, *2to3* trouvera un endroit dans votre code source qui doit être "
"changé, mais qu'il ne peut pas résoudre automatiquement. Dans ce cas, "
"*2to3* affiche un avertissement sous la comparaison d'un fichier. Vous "
"devez traiter l'avertissement afin d'avoir un code conforme à Python 3.x."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:94
2016-10-30 09:46:26 +00:00
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 ""
"*2to3* peut également réusiner les *doctests*. Pour activer ce mode, "
"utilisez :option:`!-d`. Notez que *seul* les *doctests* seront réusinés. "
"Cela ne nécessite pas que le module soit du Python valide. Par exemple, des "
"*doctests* tels que des exemples dans un document *reST* peuvent également "
"être réusinés avec cette option."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:99
2016-10-30 09:46:26 +00:00
msgid ""
"The :option:`!-v` option enables output of more information on the "
"translation process."
msgstr ""
"L'option :option:`!-v` augmente la quantité de messages générés par le "
"processus de traduction."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:102
2016-10-30 09:46:26 +00:00
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 "
2020-07-20 08:56:42 +00:00
"had its print statements converted. Also :option:`!-e` can be used to make :"
"func:`exec` a function."
2016-10-30 09:46:26 +00:00
msgstr ""
"Puisque l'instruction ``print`` peut être analysée soit comme un appel de "
"fonction soit comme une instruction, *2to3* ne peut pas toujours lire les "
"fichiers contenant la fonction *print*. Lorsque *2to3* détecte la présence "
"de la directive compilateur ``from __future__ import print_function``, il "
"modifie sa grammaire interne pour interpréter :func:`print` comme une "
"fonction. Cette modification peut également être activée manuellement avec "
"l'option :option:`!-p`. Utilisez :option:`!-p` pour exécuter des "
"correcteurs sur du code dont les instructions d'affichage ont déjà été "
"converties. Notez également l'usage de l'option :option:`!-e` pour "
"transformer :func:`exec` en fonction."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:110
2016-10-30 09:46:26 +00:00
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."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:115
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
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:118
2016-10-30 09:46:26 +00:00
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 ""
"L'option :option:`!-W` ou :option:`!—write-unchanged-files` indique à *2to3* "
"de toujours écrire des fichiers de sortie même si aucun changement du "
2022-11-14 15:08:57 +00:00
"fichier n'était nécessaire. Ceci est très utile avec :option:`!-o` pour "
"qu'un arbre des sources Python entier soit copié avec la traduction d'un "
"répertoire à l'autre. Cette option implique :option:`!-w` sans quoi elle "
"n'aurait pas de sens."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:124
2016-10-30 09:46:26 +00:00
msgid "The :option:`!-W` flag was added."
msgstr "L'option :option:`!-W` a été ajoutée."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:127
2016-10-30 09:46:26 +00:00
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 "
"différents. Exemple :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:135
2016-10-30 09:46:26 +00:00
msgid "Will cause a converted file named ``example.py3`` to be written."
msgstr "Écrit un fichier converti nommé ``example.py3``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:137
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
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:140
2016-10-30 09:46:26 +00:00
msgid "To translate an entire project from one directory tree to another use:"
msgstr ""
"Pour traduire un projet entier d'une arborescence de répertoires à une "
"autre, utilisez :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:150
2016-10-30 09:46:26 +00:00
msgid "Fixers"
2018-03-20 23:16:43 +00:00
msgstr "Correcteurs"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:152
2016-10-30 09:46:26 +00:00
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 ""
"Chaque étape de la transformation du code est encapsulée dans un "
"correcteur. La commande ``2to3 -l`` les énumère. Comme :ref:`documenté ci-"
"dessus <2to3-using>`, chacun peut être activé ou désactivé "
"individuellement. Ils sont décrits plus en détails ici."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:159
2016-10-30 09:46:26 +00:00
msgid ""
"Removes usage of :func:`apply`. For example ``apply(function, *args, "
"**kwargs)`` is converted to ``function(*args, **kwargs)``."
msgstr ""
"Supprime l'usage d':func:`apply`. Par exemple, ``apply(function, *args, "
"**kwargs)`` est converti en ``function(*args, **kwargs)``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:164
2016-10-30 09:46:26 +00:00
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."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:356
2016-10-30 09:46:26 +00:00
msgid "From"
msgstr "De"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:356
2016-10-30 09:46:26 +00:00
msgid "To"
msgstr "À"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:169
2016-10-30 09:46:26 +00:00
msgid "``failUnlessEqual(a, b)``"
msgstr "``failUnlessEqual(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:171
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertEqual(a, b) <unittest.TestCase.assertEqual>`"
msgstr ":meth:`assertEqual(a, b) <unittest.TestCase.assertEqual>`"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:171
2016-10-30 09:46:26 +00:00
msgid "``assertEquals(a, b)``"
msgstr "``assertEquals(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:173
2016-10-30 09:46:26 +00:00
msgid "``failIfEqual(a, b)``"
msgstr "``failIfEqual(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:175
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertNotEqual(a, b) <unittest.TestCase.assertNotEqual>`"
msgstr ":meth:`assertNotEqual(a, b) <unittest.TestCase.assertNotEqual>`"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:175
2016-10-30 09:46:26 +00:00
msgid "``assertNotEquals(a, b)``"
msgstr "``assertNotEquals(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:177
2016-10-30 09:46:26 +00:00
msgid "``failUnless(a)``"
msgstr "``failUnless(a)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:179
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertTrue(a) <unittest.TestCase.assertTrue>`"
msgstr ":meth:`assertTrue(a) <unittest.TestCase.assertTrue>`"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:179
2016-10-30 09:46:26 +00:00
msgid "``assert_(a)``"
msgstr "``assert_(a)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:181
2016-10-30 09:46:26 +00:00
msgid "``failIf(a)``"
msgstr "``failIf(a)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:181
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertFalse(a) <unittest.TestCase.assertFalse>`"
msgstr ":meth:`assertFalse(a) <unittest.TestCase.assertFalse>`"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:183
2016-10-30 09:46:26 +00:00
msgid "``failUnlessRaises(exc, cal)``"
msgstr "``failUnlessRaises(exc, cal)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:183
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertRaises(exc, cal) <unittest.TestCase.assertRaises>`"
msgstr ":meth:`assertRaises(exc, cal) <unittest.TestCase.assertRaises>`"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:185
2016-10-30 09:46:26 +00:00
msgid "``failUnlessAlmostEqual(a, b)``"
msgstr "``failUnlessAlmostEqual(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:187
2016-10-30 09:46:26 +00:00
msgid ":meth:`assertAlmostEqual(a, b) <unittest.TestCase.assertAlmostEqual>`"
msgstr ":meth:`assertAlmostEqual(a, b) <unittest.TestCase.assertAlmostEqual>`"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:187
2016-10-30 09:46:26 +00:00
msgid "``assertAlmostEquals(a, b)``"
msgstr "``assertAlmostEquals(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:189
2016-10-30 09:46:26 +00:00
msgid "``failIfAlmostEqual(a, b)``"
msgstr "``failIfAlmostEqual(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:191
2016-10-30 09:46:26 +00:00
msgid ""
":meth:`assertNotAlmostEqual(a, b) <unittest.TestCase.assertNotAlmostEqual>`"
msgstr ""
":meth:`assertNotAlmostEqual(a, b) <unittest.TestCase.assertNotAlmostEqual>`"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:191
2016-10-30 09:46:26 +00:00
msgid "``assertNotAlmostEquals(a, b)``"
msgstr "``assertNotAlmostEquals(a, b)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:197
2016-10-30 09:46:26 +00:00
msgid "Converts :class:`basestring` to :class:`str`."
msgstr "Convertit une :class:`basestring` en :class:`str`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:201
2016-10-30 09:46:26 +00:00
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 ""
"Convertit un :class:`buffer` en :class:`memoryview`. Ce correcteur est "
"optionnel car l'API :class:`memoryview` est similaire mais pas exactement "
"pareil que celle de :class:`buffer`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:207
2016-10-30 09:46:26 +00:00
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 ""
"Fixe les méthodes d'itération sur les dictionnaires. :meth:`dict.iteritems` "
"est converti en :meth:`dict.items`, :meth:`dict.iterkeys` en :meth:`dict."
2019-09-16 09:02:41 +00:00
"keys` et :meth:`dict.itervalues` en :meth:`dict.values`. De la même façon, :"
"meth:`dict.viewitems`, :meth:`dict.viewkeys` et :meth:`dict.viewvalues` sont "
"convertis respectivement en :meth:`dict.items`, :meth:`dict.keys` et :meth:"
"`dict.values`. Il encapsule également les usages existants de :meth:`dict."
"items`, :meth:`dict.keys` et :meth:`dict.values` dans un appel à :class:"
"`list`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:217
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``."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:221
2016-10-30 09:46:26 +00:00
msgid "Converts the ``exec`` statement to the :func:`exec` function."
msgstr "Convertit l'instruction ``exec`` en fonction :func:`exec`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:225
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 ""
"Supprime l'usage de :func:`execfile`. L'argument de :func:`execfile` est "
"encapsulé dans des appels à :func:`open`, :func:`compile` et :func:`exec`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:230
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:"
2016-10-30 09:46:26 +00:00
"`atexit`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:235
2016-10-30 09:46:26 +00:00
msgid "Wraps :func:`filter` usage in a :class:`list` call."
msgstr "Encapsule l'usage de :func:`filter` dans un appel à :class:`list`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:239
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 ""
"Fixe les attributs de fonction ayant été renommés. Par exemple, "
"``my_function.func_closure`` est converti en ``my_function.__closure__``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:244
2016-10-30 09:46:26 +00:00
msgid "Removes ``from __future__ import new_feature`` statements."
msgstr "Supprime les instructions ``from __future__ import new_feature``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:248
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`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:252
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``."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:256
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 ""
"Ce correcteur optionnel effectue plusieurs transformations rendant le code "
"Python plus idiomatique. Les comparaisons de types telles que ``type(x) is "
"SomeClass`` et ``type(x) == SomeClass`` sont converties en ``isinstance(x, "
"SomeClass)``. ``while 1`` devient ``while True``. Ce correcteur essaye "
"aussi d'utiliser :func:`sorted` aux endroits appropriés. Par exemple, ce "
"bloc ::"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:265
2016-10-30 09:46:26 +00:00
msgid "is changed to ::"
msgstr "est transformé en ::"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:271
2016-10-30 09:46:26 +00:00
msgid "Detects sibling imports and converts them to relative imports."
2019-06-02 11:06:43 +00:00
msgstr ""
"Détecte les importations voisines et les convertit en importations relatives."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:275
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."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:279
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 renommages de modules dans la bibliothèque standard. Il est "
2016-10-30 09:46:26 +00:00
"distinct de :2to3fixer:`imports` seulement en raison de limitations "
"techniques."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:284
2016-10-30 09:46:26 +00:00
msgid "Converts ``input(prompt)`` to ``eval(input(prompt))``."
msgstr "Convertit ``input(prompt)`` en ``eval(input(prompt))``."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:288
2016-10-30 09:46:26 +00:00
msgid "Converts :func:`intern` to :func:`sys.intern`."
msgstr "Convertit :func:`intern` en :func:`sys.intern`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:292
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, "
2017-12-01 06:48:13 +00:00
"int)`` and ``isinstance(x, (int, float, int))`` is converted to "
"``isinstance(x, (int, float))``."
2016-10-30 09:46:26 +00:00
msgstr ""
"Fixe les types dupliqués dans le second argument de :func:`isinstance`. Par "
"exemple, ``isinstance(x, (int, int))`` est converti en ``isinstance(x, "
"int)`` et ``isinstance(x, (int, float, int))`` est converti en "
"``isinstance(x, (int, float))``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:299
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 ""
2019-06-02 11:06:43 +00:00
"Supprime les importations de :func:`itertools.ifilter`, :func:`itertools."
"izip` et :func:`itertools.imap`. Les importations de :func:`itertools."
"ifilterfalse` sont aussi changées en :func:`itertools.filterfalse`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:305
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 ""
"Change l'usage de :func:`itertools.ifilter`, :func:`itertools.izip` et :func:"
"`itertools.imap` en leurs équivalents intégrés. :func:`itertools."
"ifilterfalse` est changé en :func:`itertools.filterfalse`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:311
2016-10-30 09:46:26 +00:00
msgid "Renames :class:`long` to :class:`int`."
msgstr "Renomme :class:`long` en :class:`int`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:315
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 ""
"Encapsule :func:`map` dans un appel à :class:`list`. Change aussi "
"``map(None, x)`` en ``list(x)``. L'usage de ``from future_builtins import "
"map`` désactive ce correcteur."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:321
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)``)."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:326
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 ""
"Fixe les anciens noms d'attributs de méthodes. Par exemple, ``meth."
"im_func`` est converti en ``meth.__func__``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:331
2016-10-30 09:46:26 +00:00
msgid "Converts the old not-equal syntax, ``<>``, to ``!=``."
msgstr "Convertit l'ancienne syntaxe d'inégalité, ``<>``, en ``!=``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:335
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 ""
"Convertit l'usage des méthodes :meth:`~iterator.next` de l' itérateur en :"
"func:`next`. Renomme également les méthodes :meth:`next` en :meth:"
"`~iterator.__next__`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:341
2021-12-31 10:41:52 +00:00
#, fuzzy
msgid ""
"Renames definitions of methods called :meth:`__nonzero__` to :meth:`~object."
"__bool__`."
2016-10-30 09:46:26 +00:00
msgstr "Renomme :meth:`__nonzero__` en :meth:`~object.__bool__`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:346
2016-10-30 09:46:26 +00:00
msgid "Converts octal literals into the new syntax."
msgstr ""
2018-03-20 23:55:50 +00:00
"Convertit les nombres écrits littéralement en octal dans leur nouvelle "
2016-10-30 09:46:26 +00:00
"syntaxe."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:350
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`` "
2018-06-28 13:32:56 +00:00
"statements are added, e.g. ``import collections.abc``. The following "
"mapping are made:"
2016-10-30 09:46:26 +00:00
msgstr ""
"Convertit les appels à diverses fonctions du module :mod:`operator` en "
"appels d'autres fonctions équivalentes. Si besoin, les instructions "
"``import`` appropriées sont ajoutées, e.g. ``import collections.abc``. Les "
"correspondances suivantes sont appliquées :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:358
2016-10-30 09:46:26 +00:00
msgid "``operator.isCallable(obj)``"
msgstr "``operator.isCallable(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:358
2018-06-28 13:32:56 +00:00
msgid "``callable(obj)``"
2018-07-05 09:39:28 +00:00
msgstr "``callable(obj)``"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:359
2016-10-30 09:46:26 +00:00
msgid "``operator.sequenceIncludes(obj)``"
msgstr "``operator.sequenceIncludes(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:359
2016-10-30 09:46:26 +00:00
msgid "``operator.contains(obj)``"
msgstr "``operator.contains(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:360
2016-10-30 09:46:26 +00:00
msgid "``operator.isSequenceType(obj)``"
msgstr "``operator.isSequenceType(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:360
2018-06-28 13:32:56 +00:00
msgid "``isinstance(obj, collections.abc.Sequence)``"
2018-07-05 09:39:28 +00:00
msgstr "``isinstance(obj, collections.abc.Sequence)``"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:361
2016-10-30 09:46:26 +00:00
msgid "``operator.isMappingType(obj)``"
msgstr "``operator.isMappingType(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:361
2018-06-28 13:32:56 +00:00
msgid "``isinstance(obj, collections.abc.Mapping)``"
2018-07-05 09:39:28 +00:00
msgstr "``isinstance(obj, collections.abc.Mapping)``"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:362
2016-10-30 09:46:26 +00:00
msgid "``operator.isNumberType(obj)``"
msgstr "``operator.isNumberType(obj)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:362
2016-10-30 09:46:26 +00:00
msgid "``isinstance(obj, numbers.Number)``"
msgstr "``isinstance(obj, numbers.Number)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:363
2016-10-30 09:46:26 +00:00
msgid "``operator.repeat(obj, n)``"
msgstr "``operator.repeat(obj, n)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:363
2016-10-30 09:46:26 +00:00
msgid "``operator.mul(obj, n)``"
msgstr "``operator.mul(obj, n)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:364
2016-10-30 09:46:26 +00:00
msgid "``operator.irepeat(obj, n)``"
msgstr "``operator.irepeat(obj, n)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:364
2016-10-30 09:46:26 +00:00
msgid "``operator.imul(obj, n)``"
msgstr "``operator.imul(obj, n)``"
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:369
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 ""
"Ajoute des parenthèses supplémentaires lorsqu'elles sont nécessaires dans "
"les listes en compréhension. Par exemple, ``[x for x in 1, 2]`` devient "
"``[x for x in (1, 2)]``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:374
2016-10-30 09:46:26 +00:00
msgid "Converts the ``print`` statement to the :func:`print` function."
msgstr "Convertit l'instruction ``print`` en fonction :func:`print`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:378
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 ""
"Convertit ``raise E, V`` en ``raise E(V)`` et ``raise E, V, T`` en ``raise "
"E(V).with_traceback(T)``. Si ``E`` est un *n*-uplet, la conversion sera "
"incorrecte puisque la substitution de *n*-uplets aux exceptions a été "
"supprimée en 3.0."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:384
2016-10-30 09:46:26 +00:00
msgid "Converts :func:`raw_input` to :func:`input`."
msgstr "Convertit :func:`raw_input` en :func:`input`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:388
2016-10-30 09:46:26 +00:00
msgid "Handles the move of :func:`reduce` to :func:`functools.reduce`."
msgstr "Gère le déplacement de :func:`reduce` à :func:`functools.reduce`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:392
msgid "Converts :func:`reload` to :func:`importlib.reload`."
msgstr ""
"Convertit les appels à :func:`reload` en appels à :func:`importlib.reload`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:396
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`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:400
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`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:404
2016-10-30 09:46:26 +00:00
msgid ""
"Replaces use of the :class:`set` constructor with set literals. This fixer "
"is optional."
msgstr ""
"Remplace l'usage du constructeur de :class:`set` par les ensembles "
"littéraux. Ce correcteur est optionnel."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:409
2016-10-30 09:46:26 +00:00
msgid "Renames :exc:`StandardError` to :exc:`Exception`."
msgstr "Renomme :exc:`StandardError` en :exc:`Exception`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:413
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 ""
"Change les :data:`sys.exc_value`, :data:`sys.exc_type`, :data:`sys."
"exc_traceback` dépréciés en :func:`sys.exc_info`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:418
2016-10-30 09:46:26 +00:00
msgid "Fixes the API change in generator's :meth:`throw` method."
msgstr ""
"Fixe le changement de l'API dans la méthode :meth:`throw` du générateur."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:422
2016-10-30 09:46:26 +00:00
msgid ""
"Removes implicit tuple parameter unpacking. This fixer inserts temporary "
"variables."
msgstr ""
"Supprime la décompression implicite des paramètres d'un *n*-uplet. Ce "
"correcteur ajoute des variables temporaires."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:427
2016-10-30 09:46:26 +00:00
msgid ""
"Fixes code broken from the removal of some members in the :mod:`types` "
"module."
msgstr ""
"Fixe le code cassé par la suppression de certains membres du module :mod:"
"`types`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:432
2016-10-30 09:46:26 +00:00
msgid "Renames :class:`unicode` to :class:`str`."
msgstr "Renomme :class:`unicode` en :class:`str`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:436
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:"
2018-03-20 23:16:43 +00:00
"`urllib`."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:441
2016-10-30 09:46:26 +00:00
msgid ""
"Removes excess whitespace from comma separated items. This fixer is "
"optional."
msgstr ""
"Supprime l'espace excédentaire des éléments séparés par des virgules. Ce "
"correcteur est optionnel."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:446
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`."
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:451
2016-10-30 09:46:26 +00:00
msgid "Changes ``for x in file.xreadlines()`` to ``for x in file``."
msgstr "Change ``for x in file.xreadlines()`` en ``for x in file``."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:455
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 ""
"Encapsule l'usage de :func:`zip` dans un appel à :class:`list`. Ceci est "
"désactivé lorsque ``from future_builtins import zip`` apparaît."
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:460
#, fuzzy
msgid ":mod:`lib2to3` --- 2to3's library"
msgstr ":mod:`lib2to3` — la bibliothèque de *2to3*"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:469
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/lib2to3/`"
msgstr "**Code source:** :source:`Lib/lib2to3/`"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:482
#, fuzzy
2020-07-20 08:56:42 +00:00
msgid ""
"Python 3.9 switched to a PEG parser (see :pep:`617`) while lib2to3 is using "
"a less flexible LL(1) parser. Python 3.10 includes new language syntax that "
"is not parsable by lib2to3's LL(1) parser (see :pep:`634`). The ``lib2to3`` "
"module was marked pending for deprecation in Python 3.9 (raising :exc:"
"`PendingDeprecationWarning` on import) and fully deprecated in Python 3.11 "
"(raising :exc:`DeprecationWarning`). It will be removed from the standard "
"library in Python 3.13. Consider third-party alternatives such as `LibCST`_ "
"or `parso`_."
2020-07-20 08:56:42 +00:00
msgstr ""
"Python 3.9 utilisera prochainement un analyseur syntaxique PEG (voir :pep:"
"`617`) et il est possible que Python 3.10 introduise une nouvelle syntaxe "
"qui ne pourra pas être analysée par lib2to3 (qui utilise un analyseur "
"syntaxique LL(1)). Il est également possible que le module ``lib2to3`` soit "
"supprimé de la bibliothèque standard dans une future version de Python. Pour "
"une approche alternative, vous pouvez utiliser des outils tiers tels que "
"`LibCST`_ ou `parso`_."
2020-07-20 08:56:42 +00:00
2022-03-23 17:40:12 +00:00
#: library/2to3.rst:485
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 ""
"L'API de :mod:`lib2to3` devrait être considérée instable et peut changer "
"drastiquement dans le futur."