Drop usage of obsolete function "file"

Also use context manager
This commit is contained in:
Seppo Yli-Olli 2014-08-29 19:18:52 +03:00
parent b97b1f17cf
commit 66c2e8ff52

View File

@ -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",