From 418f8ff6c843ce8f5fd3de5251c913f97b1e7b80 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Mon, 27 Jun 2022 19:32:52 +0100 Subject: [PATCH] virt_bootstrap: Fix build with Python 3.11 Changed in version 3.11: codeset parameter is removed. https://docs.python.org/3.11/library/gettext.html Signed-off-by: Radostin Stoyanov --- src/virtBootstrap/virt_bootstrap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/virtBootstrap/virt_bootstrap.py b/src/virtBootstrap/virt_bootstrap.py index b486ac3..1a86cc4 100755 --- a/src/virtBootstrap/virt_bootstrap.py +++ b/src/virtBootstrap/virt_bootstrap.py @@ -45,8 +45,7 @@ gettext.bindtextdomain("virt-bootstrap", "/usr/share/locale") gettext.textdomain("virt-bootstrap") try: gettext.install("virt-bootstrap", - localedir="/usr/share/locale", - codeset='utf-8') + localedir="/usr/share/locale") except IOError: try: import __builtin__ -- 2.36.1