aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authoragronholm <none@none>2009-09-27 01:12:15 +0300
committeragronholm <none@none>2009-09-27 01:12:15 +0300
commit3f06b14ae21d70149f4f404f2d9d82f3842c23dc (patch)
tree3a831f43ae69a46ccbe897f3d4d3a5ccf74dcb55 /pkg_resources.py
parentceb63ce0341593a12ed0064ea616e6418ccffd21 (diff)
downloadexternal_python_setuptools-3f06b14ae21d70149f4f404f2d9d82f3842c23dc.tar.gz
external_python_setuptools-3f06b14ae21d70149f4f404f2d9d82f3842c23dc.tar.bz2
external_python_setuptools-3f06b14ae21d70149f4f404f2d9d82f3842c23dc.zip
Changed file() calls to open() calls
--HG-- branch : distribute extra : rebase_source : a2567f3f28d896dd0abbbed8a2626cc4ecb3e44e
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py2
1 files changed, 1 insertions, 1 deletions
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