summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources.py2
-rw-r--r--setuptools/tests/test_resources.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 62b6ab1a..2acd43bb 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1873,7 +1873,7 @@ class EntryPoint(object):
src
)
else:
- return cls(name.strip(), value.lstrip(), attrs, extras, dist)
+ return cls(name.strip(), value.strip(), attrs, extras, dist)
parse = classmethod(parse)
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index b4dbfdbd..6f3b1d78 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -254,18 +254,18 @@ class EntryPointTests(TestCase):
def checkSubMap(self, m):
self.assertEqual(str(m),
- "{"
- "'feature2': EntryPoint.parse("
+ "{'feature2': EntryPoint.parse("
"'feature2 = another.module:SomeClass [extra1,extra2]'), "
+ "'feature3': EntryPoint.parse('feature3 = this.module [something]'), "
"'feature1': EntryPoint.parse("
- "'feature1 = somemodule:somefunction')"
- "}"
+ "'feature1 = somemodule:somefunction')}"
)
submap_str = """
# define features for blah blah
feature1 = somemodule:somefunction
feature2 = another.module:SomeClass [extra1,extra2]
+ feature3 = this.module [something]
"""
def testParseList(self):