diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-15 22:56:06 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-15 22:56:06 +0200 |
commit | 319abf4fd04df049997dacf9ee02bee1eac5d193 (patch) | |
tree | adb1afca2b0e46950102aa106b27c64be68e1ba1 /doc | |
parent | 7a544d5fcfd17536376252963172ea2341236709 (diff) | |
download | weechat-319abf4fd04df049997dacf9ee02bee1eac5d193.zip |
python: remove support of Python 2.x
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/includes/autogen_api_infos.de.adoc | 2 | ||||
-rw-r--r-- | doc/de/weechat_scripting.de.adoc | 4 | ||||
-rw-r--r-- | doc/de/weechat_user.de.adoc | 9 | ||||
-rw-r--r-- | doc/en/includes/autogen_api_infos.en.adoc | 2 | ||||
-rw-r--r-- | doc/en/weechat_scripting.en.adoc | 4 | ||||
-rw-r--r-- | doc/en/weechat_user.en.adoc | 9 | ||||
-rw-r--r-- | doc/fr/includes/autogen_api_infos.fr.adoc | 2 | ||||
-rw-r--r-- | doc/fr/weechat_scripting.fr.adoc | 4 | ||||
-rw-r--r-- | doc/fr/weechat_user.fr.adoc | 9 | ||||
-rw-r--r-- | doc/it/includes/autogen_api_infos.it.adoc | 2 | ||||
-rw-r--r-- | doc/it/weechat_scripting.it.adoc | 4 | ||||
-rw-r--r-- | doc/it/weechat_user.it.adoc | 11 | ||||
-rw-r--r-- | doc/ja/includes/autogen_api_infos.ja.adoc | 2 | ||||
-rw-r--r-- | doc/ja/weechat_scripting.ja.adoc | 4 | ||||
-rw-r--r-- | doc/ja/weechat_user.ja.adoc | 11 | ||||
-rw-r--r-- | doc/pl/includes/autogen_api_infos.pl.adoc | 2 | ||||
-rw-r--r-- | doc/pl/weechat_user.pl.adoc | 9 | ||||
-rw-r--r-- | doc/sr/includes/autogen_api_infos.sr.adoc | 2 | ||||
-rw-r--r-- | doc/sr/weechat_scripting.sr.adoc | 2 | ||||
-rw-r--r-- | doc/sr/weechat_user.sr.adoc | 8 |
20 files changed, 13 insertions, 89 deletions
diff --git a/doc/de/includes/autogen_api_infos.de.adoc b/doc/de/includes/autogen_api_infos.de.adoc index 2fcb004eb..25883c98d 100644 --- a/doc/de/includes/autogen_api_infos.de.adoc +++ b/doc/de/includes/autogen_api_infos.de.adoc @@ -60,8 +60,6 @@ | php | php_version | Version des verwendeten Interpreters | - -| python | python2_bin | Pfad zum Python 2.x Interpreter (*veraltet*, seit WeeChat Version 2.6 müssen Skripten Python3 verwenden) | - - | python | python_eval | Evaluierung des Quelltextes | Quelltext welcher ausgeführt werden soll | python | python_interpreter | Name des verwendeten Interpreters | - diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc index a6737ae33..6a256391b 100644 --- a/doc/de/weechat_scripting.de.adoc +++ b/doc/de/weechat_scripting.de.adoc @@ -144,10 +144,6 @@ Liste ist nicht vollständig): |=== -Mit Python 2, das mittlerweile veraltet ist und nicht mehr verwendet werden sollte, ist die -Zeichenkette die an die Callbacks gesendet wird immer vom Typ `str` und kann deshalb bei den -oben genannten Fällen, ungültige UTF-8 Daten enthalten. - [[language_perl]] ==== Perl diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index d2859f69f..ca106bd82 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -168,7 +168,7 @@ WeeChat optional sind: | gettext | | Internationalisierung (Übersetzung der Mitteilungen; Hauptsprache ist englisch). | ca-certificates | | Zertifikate für SSL Verbindungen. | libaspell-dev / libenchant-dev | | Spell Erweiterung. -| python3-dev ^(2)^ | | Python Erweiterung. +| python3-dev | ≥ 3.0 | Python Erweiterung. | libperl-dev | | Perl Erweiterung. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby Erweiterung. | liblua5.4-dev | | Lua Erweiterung. @@ -187,9 +187,7 @@ WeeChat optional sind: [NOTE] ^(1)^ Der Name stammt von der Debian GNU/Linux Bullseye-Distribution, -Version und Name können in anderen Distributionen anders lauten. + -^(2)^ standardmäßig wird Python 3.x verwendet. Wird die Option `+ENABLE_PYTHON2+` aktiviert -(siehe unten), sollte die Version 2.7 von Python genutzt werden. +Version und Name können in anderen Distributionen anders lauten. Falls eine Debian/Ubuntu basierte Distribution genutzt wird und man einen "deb-src" Quelleintrag in _/etc/apt/sources.list_ eingetragen hat, dann ist @@ -305,9 +303,6 @@ Liste von häufig verwendeten Optionen: | ENABLE_PYTHON | `ON`, `OFF` | ON | kompiliert <<scripting_plugins,Python Erweiterung>>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| kompiliert <<scripting_plugins,Python Erweiterung>> nutzt Python 2 anstelle von Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | kompiliert <<relay,Relay Erweiterung>>. diff --git a/doc/en/includes/autogen_api_infos.en.adoc b/doc/en/includes/autogen_api_infos.en.adoc index 5d6b42497..01ff23c34 100644 --- a/doc/en/includes/autogen_api_infos.en.adoc +++ b/doc/en/includes/autogen_api_infos.en.adoc @@ -60,8 +60,6 @@ | php | php_version | version of the interpreter used | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | evaluation of source code | source code to execute | python | python_interpreter | name of the interpreter used | - diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc index 237e2aabd..f54d53796 100644 --- a/doc/en/weechat_scripting.en.adoc +++ b/doc/en/weechat_scripting.en.adoc @@ -134,10 +134,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index 91106fad6..ff27f8eb1 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -161,7 +161,7 @@ WeeChat: | gettext | | Internationalization (translation of messages; base language is English). | ca-certificates | | Certificates for SSL connections. | libaspell-dev / libenchant-dev | | Spell plugin. -| python3-dev ^(2)^ | | Python plugin. +| python3-dev | ≥ 3.0 | Python plugin. | libperl-dev | | Perl plugin. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby plugin. | liblua5.4-dev | | Lua plugin. @@ -180,9 +180,7 @@ WeeChat: [NOTE] ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` -(see below), only the version 2.7 of Python is recommended. +name can be different in other distributions. If you are using a Debian/Ubuntu based distribution, and if you have some "deb-src" source entries in your file _/etc/apt/sources.list_, you can install @@ -297,9 +295,6 @@ List of commonly used options: | ENABLE_PYTHON | `ON`, `OFF` | ON | Compile <<scripting_plugins,Python plugin>>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <<scripting_plugins,Python plugin>> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compile <<relay,Relay plugin>>. diff --git a/doc/fr/includes/autogen_api_infos.fr.adoc b/doc/fr/includes/autogen_api_infos.fr.adoc index e78ac0637..846ffa665 100644 --- a/doc/fr/includes/autogen_api_infos.fr.adoc +++ b/doc/fr/includes/autogen_api_infos.fr.adoc @@ -60,8 +60,6 @@ | php | php_version | version de l'interpréteur utilisé | - -| python | python2_bin | chemin vers l'interpréteur Python 2.x (*obsolète* depuis la version 2.6, les scripts doivent utiliser seulement Python 3) | - - | python | python_eval | évaluation de code source | code source à exécuter | python | python_interpreter | nom de l'interpréteur utilisé | - diff --git a/doc/fr/weechat_scripting.fr.adoc b/doc/fr/weechat_scripting.fr.adoc index 4245b0e4f..a8d732461 100644 --- a/doc/fr/weechat_scripting.fr.adoc +++ b/doc/fr/weechat_scripting.fr.adoc @@ -143,10 +143,6 @@ pas exhaustive) : |=== -En Python 2, qui est déconseillé et ne devrait plus être utilisé, les chaînes -envoyées aux fonctions de rappel sont toujours de type `str`, et peuvent contenir -des données invalides UTF-8, dans les cas mentionnés ci-dessus. - [[language_perl]] ==== Perl diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index da4d56a05..e0343cc65 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -162,7 +162,7 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat : | gettext | | Internationalisation (traduction des messages ; la langue de base est l'anglais). | ca-certificates | | Certificats pour les connexions SSL. | libaspell-dev / libenchant-dev | | Extension spell. -| python3-dev ^(2)^ | | Extension python. +| python3-dev | ≥ 3.0 | Extension python. | libperl-dev | | Extension perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Extension ruby. | liblua5.4-dev | | Extension lua. @@ -182,9 +182,6 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat : [NOTE] ^(1)^ Le nom provient de la distribution GNU/Linux Debian Bullseye, la version et le nom peuvent être différents dans les autres distributions. -^(2)^ Par défaut Python 3.x est utilisé. Si vous activez l'option -`+ENABLE_PYTHON2+` (voir ci-dessous), seule la version 2.7 de Python est -recommandée. Si vous utilisez une distribution basée sur Debian ou Ubuntu, et si vous avez des entrées source "deb-src" dans votre fichier _/etc/apt/sources.list_, vous @@ -299,10 +296,6 @@ Liste des options couramment utilisées : | ENABLE_PYTHON | `ON`, `OFF` | ON | Compiler <<scripting_plugins,l'extension Python>>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compiler <<scripting_plugins,l'extension Python>> avec Python 2 au lieu de - Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compiler <<relay,l'extension Relay>>. diff --git a/doc/it/includes/autogen_api_infos.it.adoc b/doc/it/includes/autogen_api_infos.it.adoc index 4aafd0380..3cbe8daca 100644 --- a/doc/it/includes/autogen_api_infos.it.adoc +++ b/doc/it/includes/autogen_api_infos.it.adoc @@ -60,8 +60,6 @@ | php | php_version | version of the interpreter used | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | evaluation of source code | source code to execute | python | python_interpreter | name of the interpreter used | - diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc index 44bed235c..c31bffdf6 100644 --- a/doc/it/weechat_scripting.it.adoc +++ b/doc/it/weechat_scripting.it.adoc @@ -147,10 +147,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index b28e8e913..f8edbe73e 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -197,7 +197,7 @@ WeeChat: | gettext | | Internazionalizzazione (traduzione dei messaggi; la lingua base è l'inglese). | ca-certificates | | Certificati per le connessioni SSL. | libaspell-dev / libenchant-dev | | Plugin spell. -| python3-dev ^(2)^ | | Plugin python. +| python3-dev | ≥ 3.0 | Plugin python. | libperl-dev | | Plugin perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Plugin ruby. | liblua5.4-dev | | Plugin lua. @@ -222,10 +222,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -// TRANSLATION MISSING -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` (see -below), only the version 2.7 of Python is recommended. +name can be different in other distributions. // TRANSLATION MISSING If you are using a Debian/Ubuntu based distribution, and if you have some @@ -346,10 +343,6 @@ List of commonly used options: | ENABLE_PYTHON | `ON`, `OFF` | ON | Compile <<scripting_plugins,Python plugin>>. -// TRANSLATION MISSING -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <<scripting_plugins,Python plugin>> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Compile <<relay,Relay plugin>>. diff --git a/doc/ja/includes/autogen_api_infos.ja.adoc b/doc/ja/includes/autogen_api_infos.ja.adoc index 3356bf47c..8d1b171d8 100644 --- a/doc/ja/includes/autogen_api_infos.ja.adoc +++ b/doc/ja/includes/autogen_api_infos.ja.adoc @@ -60,8 +60,6 @@ | php | php_version | 使用中のインタプリタのバージョン | - -| python | python2_bin | path to Python 2.x interpreter (*deprecated* since version 2.6, scripts must use Python 3 only) | - - | python | python_eval | ソースコードの評価 | 実行するソースコード | python | python_interpreter | 使用中のインタプリタの名前 | - diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc index 4fd333797..c9dbc32bb 100644 --- a/doc/ja/weechat_scripting.ja.adoc +++ b/doc/ja/weechat_scripting.ja.adoc @@ -144,10 +144,6 @@ receive a string of type `str` or `bytes` (this list is not exhaustive): |=== -In Python 2, which is now deprecated and should not be used any more, the -strings sent to callbacks are always of type `str`, and may contain invalid -UTF-8 data, in the cases mentioned above. - [[language_perl]] ==== Perl diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index cc27b1a02..c88babd1f 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -180,7 +180,7 @@ WeeChat: | gettext | | 国際化 (メッセージの翻訳; ベース言語は英語です) | ca-certificates | | SSL 接続に必要な証明書、relay プラグインで SSL サポート | libaspell-dev / libenchant-dev | | spell プラグイン -| python3-dev ^(2)^ | | python プラグイン +| python3-dev | 3.0 以上 | python プラグイン | libperl-dev | | perl プラグイン | ruby2.7, ruby2.7-dev | 1.9.1 以上 | ruby プラグイン | liblua5.4-dev | | lua プラグイン @@ -201,10 +201,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -// TRANSLATION MISSING -^(2)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` (see -below), only the version 2.7 of Python is recommended. +name can be different in other distributions. Debian および Ubuntu ベースのディストリビューションを使っており、_/etc/apt/sources.list_ ファイルで "deb-src" @@ -320,10 +317,6 @@ CMake に対するオプションを指定するには、以下の書式を使 | ENABLE_PYTHON | `ON`, `OFF` | ON | <<scripting_plugins,Python プラグイン>>のコンパイル。 -// TRANSLATION MISSING -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Compile <<scripting_plugins,Python plugin>> using Python 2 instead of Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | <<relay,リレープラグイン>>のコンパイル。 diff --git a/doc/pl/includes/autogen_api_infos.pl.adoc b/doc/pl/includes/autogen_api_infos.pl.adoc index 1d19996a2..0250b1c98 100644 --- a/doc/pl/includes/autogen_api_infos.pl.adoc +++ b/doc/pl/includes/autogen_api_infos.pl.adoc @@ -60,8 +60,6 @@ | php | php_version | wersja użytego interpretera | - -| python | python2_bin | ścieżka do interpretera Pythona 2.x (*przestarzałe* od wersji 2.6 skrypty muszą używać tylko Pythona 3) | - - | python | python_eval | wykonywanie kodu źródłowego | kod źródłowy do wykonania | python | python_interpreter | nazwa użytego interpretera | - diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index 6e2fa32d0..0a5eab311 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -179,7 +179,7 @@ WeeChat: | gettext | | Internacjonalizacja (tłumaczenie wiadomości; język bazowy to Angielski). | ca-certificates | | Certyfikaty dla połączeń SSL. | libaspell-dev / libenchant-dev | | Wtyczka spell. -| python3-dev ^(2)^ | | Wtyczka python. +| python3-dev | ≥ 3.0 | Wtyczka python. | libperl-dev | | Wtyczka perl. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Wtyczka ruby. | liblua5.4-dev | | Wtyczka lua. @@ -200,9 +200,7 @@ WeeChat: [NOTE] // TRANSLATION MISSING ^(1)^ Name comes from the Debian GNU/Linux Bullseye distribution, version and -name can be different in other distributions. + -^(2)^ Domyślnie używany jest Pythin 3.x. Chyba że włączysz opcję `+ENABLE_PYTHON2+` -(zobacz niżej), zaleca się uzywania wersji 2.7 Pythona. +name can be different in other distributions. Jeśli używasz dystrybujci bazującej na Debianie/Ubuntu, oraz jeśli posiadasz wpisy "deb-src" w pliku _/etc/apt/sources.list_, możesz zainstalować wszytkie zależności @@ -317,9 +315,6 @@ Lista popularnych opcji: | ENABLE_PYTHON | `ON`, `OFF` | ON | Kompilacja <<scripting_plugins,wtyczki Python>>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Kompilacja <<scripting_plugins,wtyczki Python>> z użyciem Pythona 2 zamiast Pythona 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Kompilacja <<relay,wtyczki relay>>. diff --git a/doc/sr/includes/autogen_api_infos.sr.adoc b/doc/sr/includes/autogen_api_infos.sr.adoc index c2b7b15f6..01c6306a4 100644 --- a/doc/sr/includes/autogen_api_infos.sr.adoc +++ b/doc/sr/includes/autogen_api_infos.sr.adoc @@ -60,8 +60,6 @@ | php | php_version | верзија интерпретера која се користи | - -| python | python2_bin | путања до Python 2.x интерпретера (*застарело* од верзије 2.6, скрипте смеју да користе само Python 3) | - - | python | python_eval | израчунавање изворног кода | изворни кôд који треба да се изврши | python | python_interpreter | име интерпретера који се користи | - diff --git a/doc/sr/weechat_scripting.sr.adoc b/doc/sr/weechat_scripting.sr.adoc index 0f880dba3..55808a3c5 100644 --- a/doc/sr/weechat_scripting.sr.adoc +++ b/doc/sr/weechat_scripting.sr.adoc @@ -123,8 +123,6 @@ Python стаб за WeeChat API је соступан у репозиториј |=== -У Python 2, који је сад превазиђен и више не би требало да се употребљава, стрингови који се шаљу функцијама повратног позива су увек били типа `str`, и у случајевима који су поменути изнад, могли су да садрже неважеће UTF-8 податке. - [[language_perl]] ==== Perl diff --git a/doc/sr/weechat_user.sr.adoc b/doc/sr/weechat_user.sr.adoc index fb1dc3bb9..829953d49 100644 --- a/doc/sr/weechat_user.sr.adoc +++ b/doc/sr/weechat_user.sr.adoc @@ -160,7 +160,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl | gettext | | Интернационализацију (превод порука; основни језик је енглески). | ca-certificates | | Сертификате за SSL везе. | libaspell-dev / libenchant-dev | | Spell додатак. -| python3-dev ^(2)^ | | Python додатак. +| python3-dev | ≥ 3.0 | Python додатак. | libperl-dev | | Perl додатак. | ruby2.7, ruby2.7-dev | ≥ 1.9.1 | Ruby додатак. | liblua5.4-dev | | Lua додатак. @@ -179,8 +179,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl [NOTE] ^(1)^ Име долази из Debian GNU/Linux Bullseye дистрибуције, верзија и -име могу да буду другачији у осталим дистрибуцијама. + -^(2)^ Подразумевано се користи Python 3.x. Ако укључите опцију `+ENABLE_PYTHON2+` (погледајте испод), препоручује се само верзија 2.7 језика Python. +име могу да буду другачији у осталим дистрибуцијама. Ако користите дистрибуцију базирану на Debian/Ubuntu и ако имате неке „deb-src” изворне ставке у фајлу _/etc/apt/sources.list_, можете инсталирати све зависности командом: @@ -293,9 +292,6 @@ $ make install | ENABLE_PYTHON | `ON`, `OFF` | ON | Компајлира <<scripting_plugins,Python додатак>>. -| ENABLE_PYTHON2 | `ON`, `OFF` | OFF -| Компајлира <<scripting_plugins,Python додатак>> користећи Python 2 уместо Python 3. - | ENABLE_RELAY | `ON`, `OFF` | ON | Компајлира <<relay,Relay додатак>>. |