mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 02:57:19 +00:00
Drop usage of obsolete function "file"
Also use context manager
This commit is contained in:
parent
b97b1f17cf
commit
66c2e8ff52
4
setup.py
4
setup.py
@ -70,8 +70,8 @@ def findPackages(path, dataExclude=[]):
|
|||||||
package_data[module] = acc
|
package_data[module] = acc
|
||||||
return packages, package_data
|
return packages, package_data
|
||||||
|
|
||||||
|
with open(os.path.join(pdir(), "README.txt")) as f:
|
||||||
long_description = file(os.path.join(pdir(), "README.txt")).read()
|
long_description = f.read()
|
||||||
packages, package_data = findPackages("libmproxy")
|
packages, package_data = findPackages("libmproxy")
|
||||||
setup(
|
setup(
|
||||||
name = "mitmproxy",
|
name = "mitmproxy",
|
||||||
|
Loading…
Reference in New Issue
Block a user