diff options
author | agronholm <none@none> | 2009-09-27 01:12:15 +0300 |
---|---|---|
committer | agronholm <none@none> | 2009-09-27 01:12:15 +0300 |
commit | 3f06b14ae21d70149f4f404f2d9d82f3842c23dc (patch) | |
tree | 3a831f43ae69a46ccbe897f3d4d3a5ccf74dcb55 /setuptools/package_index.py | |
parent | ceb63ce0341593a12ed0064ea616e6418ccffd21 (diff) | |
download | external_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 'setuptools/package_index.py')
-rwxr-xr-x | setuptools/package_index.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |