mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
setup: Move from codecs.open() to open()
This commit is contained in:
1 parent
5952d91055
commit
f8ba250318
1 file changed
+2
-2
@@ -1,4 +1,3 @@
|
||||
import codecs
|
||||
import os
|
||||
import shutil
|
||||
|
||||
@@ -9,7 +8,8 @@ from setuptools.extension import Extension
|
||||
package_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
frida_version = os.environ.get("FRIDA_VERSION", "0.0.0")
|
||||
long_description = codecs.open(os.path.join(package_dir, "README.md"), "r", "utf-8").read()
|
||||
with open(os.path.join(package_dir, "README.md"), "r", encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
frida_extension = os.environ.get("FRIDA_EXTENSION", None)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user