]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ptl-tool: drop deprecated codecs.open 68327/head
authorJos Collin <jcollin@redhat.com>
Sat, 11 Apr 2026 02:09:16 +0000 (07:39 +0530)
committerJos Collin <jcollin@redhat.com>
Sat, 11 Apr 2026 02:10:28 +0000 (07:40 +0530)
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/script/ptl-tool.py

index 06433ffb0049d86a642e969b43ba6a1549a49fbe..c5f86cd78ffc6f9bb39bf3165a27e44f6dccf547 100755 (executable)
 # 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: