mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 09:37:37 +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
|
||||
return packages, package_data
|
||||
|
||||
|
||||
long_description = file(os.path.join(pdir(), "README.txt")).read()
|
||||
with open(os.path.join(pdir(), "README.txt")) as f:
|
||||
long_description = f.read()
|
||||
packages, package_data = findPackages("libmproxy")
|
||||
setup(
|
||||
name = "mitmproxy",
|
||||
|
Loading…
Reference in New Issue
Block a user