Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Dictionary Syntax in check.py #25

Open
nynymike opened this issue Dec 7, 2014 · 1 comment
Open

Invalid Dictionary Syntax in check.py #25

nynymike opened this issue Dec 7, 2014 · 1 comment

Comments

@nynymike
Copy link

nynymike commented Dec 7, 2014

Getting these two stack traces...

Traceback (most recent call last):
File "./oic_flow_tests.py", line 11, in
from oictest.graph import Node, flatten
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/_init _.py", line 16, in
from oictest.check import CheckRegistrationResponse
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 228
supported = [{"code"}]

Traceback (most recent call last):
File "./oic_flow_tests.py", line 11, in
from oictest.graph import Node, flatten
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/init.py", line 16, in
from oictest.check import CheckRegistrationResponse
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 233
rt = {val}

I think {val} and {"code"} are not legal python dictionaries. Try {val: 0}, {"code": 0}

@rohe
Copy link
Owner

rohe commented Dec 7, 2014

7 dec 2014 kl. 06:50 skrev Mike Schwartz [email protected]:

Getting these two stack traces...

Traceback (most recent call last):
File "./oic_flow_tests.py", line 11, in
from oictest.graph import Node, flatten
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/_init _.py", line 16, in
from oictest.check import CheckRegistrationResponse
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 228
supported = [{"code"}]

Traceback (most recent call last):
File "./oic_flow_tests.py", line 11, in
from oictest.graph import Node, flatten
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/init.py", line 16, in
from oictest.check import CheckRegistrationResponse
File "/usr/lib/python2.6/site-packages/oictest-0.3.0-py2.6.egg/oictest/check.py", line 233
rt = {val}

I think {val} and {"code"} are not legal python dictionaries. Try {val: 0}, {"code": 0}

They are set constructors, which doesn’t work for you because it appeared in 2.7 and you’re using 2.6.
I should add that requirement to setup.py .

— Roland

”Being able to think like a child is an important attribute of being an adult” - Eddie Izzard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants