]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2467] Remove unused code
authorSlawek Figiel <slawek@isc.org>
Wed, 28 Jun 2023 17:17:08 +0000 (19:17 +0200)
committerSlawek Figiel <slawek@isc.org>
Thu, 29 Jun 2023 11:44:29 +0000 (13:44 +0200)
src/bin/shell/kea-shell.in

index d14d383b185c31a0e7950f66e6f862a28110b685..d6e448b3d5f5bedeef011c80586c98d20ef7126f 100644 (file)
@@ -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