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 --- pkg_resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg_resources.py') diff --git a/pkg_resources.py b/pkg_resources.py index 4babb48e..d0e840b8 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1676,7 +1676,7 @@ def find_on_path(importer, path_item, only=False): for dist in find_distributions(os.path.join(path_item, entry)): yield dist elif not only and lower.endswith('.egg-link'): - for line in file(os.path.join(path_item, entry)): + for line in open(os.path.join(path_item, entry)): if not line.strip(): continue for item in find_distributions(os.path.join(path_item,line.rstrip())): yield item -- cgit v1.2.3