From: Jos Collin Date: Sat, 11 Apr 2026 02:09:16 +0000 (+0530) Subject: ptl-tool: drop deprecated codecs.open X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f72d721552a5dce0c810f74f4f440f81e027aac7;p=ceph.git ptl-tool: drop deprecated codecs.open Signed-off-by: Jos Collin --- diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index 06433ffb0049..c5f86cd78ffc 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -144,7 +144,6 @@ # Look for check failures? import argparse -import codecs import datetime from getpass import getuser import git # https://github.com/gitpython-developers/gitpython @@ -218,7 +217,7 @@ while not os.path.exists(git_dir + '/.git'): CONTRIBUTORS = {} NEW_CONTRIBUTORS = {} -with codecs.open(git_dir + "/.githubmap", encoding='utf-8') as f: +with open(git_dir + "/.githubmap", mode='r', encoding='utf-8') as f: comment = re.compile(r"\s*#") patt = re.compile(r"([\w-]+)\s+(.*)") for line in f: