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

Ignore empty strings in KEYVALUEJSON format #38

Merged
merged 2 commits into from
Apr 22, 2016
Merged

Conversation

kbairak
Copy link
Member

@kbairak kbairak commented Apr 19, 2016

@ollandos spare two minutes to review n' merge this? 😻

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 91.347% when pulling 763105f on json_empty_strings into dfc3225 on master.

@@ -71,6 +73,8 @@ def _extract(self, parsed, nest=None):
else:
key = u"{}..{}..".format(nest, index)
if isinstance(item, (str, unicode)):
Copy link
Contributor

Choose a reason for hiding this comment

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

a small thing here. I know it is not relevant to the current PR but this:
isinstance(value, (str, unicode))

can be like this:
isinstance(value, basestring)

@ollandos
Copy link
Contributor

ollandos commented Apr 20, 2016

Also again on a general note (not related to the PR).
Line 55-68 and 73-87 look extremely similar. Why not make a method out of them?

Anyway besides those comments everything looks legit to me.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 91.445% when pulling d39e159 on json_empty_strings into dfc3225 on master.

@tabac tabac merged commit 21a3f44 into master Apr 22, 2016
@tabac tabac deleted the json_empty_strings branch April 22, 2016 09:17
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

Successfully merging this pull request may close these issues.

None yet

4 participants