Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

Adapt parsers to Openfisca 2.0 #11

Merged
merged 3 commits into from
Jul 11, 2016
Merged

Adapt parsers to Openfisca 2.0 #11

merged 3 commits into from
Jul 11, 2016

Conversation

fpagnoux
Copy link
Member

@fpagnoux fpagnoux commented Jul 6, 2016

Apply core API changes introduced by openfisca-core 2.0

@@ -2981,7 +2981,7 @@ def parse_value(self, node, container = None):
unicode(value).encode('utf-8'))
item_value = self.parse_value(dict_children[child_index + 2], container = container)
child_index += 3
if dict_children[child_index].type == tokens.COMMA:
if (child_index < len(dict_children)) and dict_children[child_index].type == tokens.COMMA:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbenz,

I don't know why this bug appeared now, but it was making the web-api tests to crash. I tried to understand the logic to fix it, but maybe I missed something so I could appreciate a review.

Copy link
Member

@cbenz cbenz Jul 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No precise idea since it's really not my code and it's quite complicated.

I'm testing it (openfisca-core/france on master, web-api and parsers on remove-metaclasses).

@cbenz cbenz merged commit 07de62a into master Jul 11, 2016
@cbenz cbenz deleted the remove-metaclasses branch July 11, 2016 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants