From 3f06b14ae21d70149f4f404f2d9d82f3842c23dc Mon Sep 17 00:00:00 2001 From: agronholm Date: Sun, 27 Sep 2009 01:12:15 +0300 Subject: Changed file() calls to open() calls --HG-- branch : distribute extra : rebase_source : a2567f3f28d896dd0abbbed8a2626cc4ecb3e44e --- setuptools/package_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/package_index.py') diff --git a/setuptools/package_index.py b/setuptools/package_index.py index 084370d5..98799de5 100755 --- a/setuptools/package_index.py +++ b/setuptools/package_index.py @@ -241,7 +241,7 @@ class PackageIndex(Environment): self.scan_egg_link(item, entry) def scan_egg_link(self, path, entry): - lines = filter(None, map(str.strip, file(os.path.join(path, entry)))) + lines = filter(None, map(str.strip, open(os.path.join(path, entry)))) if len(lines)==2: for dist in find_distributions(os.path.join(path, lines[0])): dist.location = os.path.join(path, *lines) -- cgit v1.2.1