Commit 2f8c8bd5 authored by Tres Seaver's avatar Tres Seaver

Close issue #341: 0.6.33 fails to build under python 2.4

--HG--
branch : distribute
extra : rebase_source : 065aad71143a72cb6abd3064e0e947fc4568422f
parent 2a3d28cf
......@@ -2,6 +2,12 @@
CHANGES
=======
----------
Unreleased
----------
+ Issue #341: 0.6.33 fails to build under python 2.4
------
0.6.33
------
......
......@@ -1763,13 +1763,14 @@ def find_on_path(importer, path_item, only=False):
elif not only and lower.endswith('.egg-link'):
entry_file = open(os.path.join(path_item, entry))
try:
for line in entry_file:
if not line.strip(): continue
for item in find_distributions(os.path.join(path_item,line.rstrip())):
yield item
break
entry_lines = entry_file.readlines()
finally:
entry_file.close()
for line in entry_lines:
if not line.strip(): continue
for item in find_distributions(os.path.join(path_item,line.rstrip())):
yield item
break
register_finder(ImpWrapper,find_on_path)
if importlib_bootstrap is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment