From: Slawek Figiel Date: Wed, 28 Jun 2023 17:17:08 +0000 (+0200) Subject: [#2467] Remove unused code X-Git-Tag: Kea-2.4.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aba6cf7fc5984da8658bd9418bd5bc2a9dfab40d;p=thirdparty%2Fkea.git [#2467] Remove unused code --- diff --git a/src/bin/shell/kea-shell.in b/src/bin/shell/kea-shell.in index d14d383b18..d6e448b3d5 100644 --- a/src/bin/shell/kea-shell.in +++ b/src/bin/shell/kea-shell.in @@ -114,10 +114,7 @@ def shell_body(): user = cmd_args.auth_user password = cmd_args.auth_password secret = b':'.join((user.encode('utf-8'), password.encode('utf-8'))) - if sys.version_info[0] == 3: - params.auth = b64encode(secret).strip().decode('ascii') - else: - params.auth = b64encode(secret).strip().encode('ascii') + params.auth = b64encode(secret).strip().decode('ascii') params.timeout = cmd_args.timeout params.version = VERSION