Add a comment

This commit is contained in:
Donald Stufft 2013-11-19 08:23:15 -05:00
parent 7b0ab3c6a5
commit ff1bb66063
1 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,10 @@ def get_entrypoints(filename):
if not os.path.exists(filename):
return {}, {}
# This is done because you can pass a string to entry_points wrappers which
# means that they may or may not be valid INI files. The attempt here is to
# strip leading and trailing whitespace in order to make them valid INI
# files.
with open(filename) as fp:
data = StringIO()
for line in fp: