DeprecationWarning: codecs.open() is deprecated. Use open() instead. (#4078)

This commit is contained in:
skkzsh
2026-04-24 21:53:22 +09:00
committed by GitHub
parent 76dcd7b99a
commit b096d7cc2a
+2 -3
View File
@@ -1,8 +1,6 @@
#!/usr/bin/env python
import codecs
import os.path
import re
import sys
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
@@ -12,7 +10,8 @@ here = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return codecs.open(os.path.join(here, *parts), 'r').read()
with open(os.path.join(here, *parts), 'r', encoding='utf-8') as f:
return f.read()
def find_version(*file_paths):