Use the right requirement key

This commit is contained in:
Joshua Harlow 2013-01-24 11:11:02 -08:00
parent 9d38611757
commit 1556ca5be7

View File

@ -934,7 +934,7 @@ class PythonTestingComponent(component.Component):
pep8_wanted = None
if isinstance(i_sibling, (PythonInstallComponent)):
for p in i_sibling.pip_requires:
req = p['__requirement']
req = p['requirement']
if req.key == "pep8":
pep8_wanted = req
break