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
1 changed files with 2 additions and 2 deletions

View File

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