diff --git a/setup.py b/setup.py index 0ec7fe7d3..df9c712f6 100644 --- a/setup.py +++ b/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",