Skip to content

Conversation

@dwapstra
Copy link
Contributor

@dwapstra dwapstra commented Apr 6, 2017

Small changes to output printing makes it easier to load the resulting data with JSON parsers

@codecov
Copy link

codecov bot commented Apr 6, 2017

Codecov Report

Merging #414 into master will decrease coverage by 0.71%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #414      +/-   ##
==========================================
- Coverage   90.11%   89.39%   -0.72%     
==========================================
  Files          40       57      +17     
  Lines        4066     4339     +273     
  Branches      744      753       +9     
==========================================
+ Hits         3664     3879     +215     
- Misses        256      289      +33     
- Partials      146      171      +25
Impacted Files Coverage Δ
src/zeep/xsd/printer.py 97.91% <100%> (ø) ⬆️
src/zeep/wsdl/messages/base.py 68.75% <0%> (-17.62%) ⬇️
src/zeep/xsd/elements/builtins.py 89.28% <0%> (-8.95%) ⬇️
src/zeep/wsdl/bindings/http.py 80.76% <0%> (-6.74%) ⬇️
src/zeep/wsdl/bindings/soap.py 84% <0%> (-6.1%) ⬇️
src/zeep/utils.py 92.3% <0%> (-5.03%) ⬇️
src/zeep/__init__.py 100% <0%> (ø) ⬆️
src/zeep/xsd/elements/base.py 80% <0%> (ø)
src/zeep/xsd/__init__.py 100% <0%> (ø)
src/zeep/xsd/utils.py 92.5% <0%> (ø)
... and 15 more

write(']')
else:
value = repr(obj)
value = '%s' % obj
Copy link
Owner

@mvantellingen mvantellingen Apr 12, 2017

Choose a reason for hiding this comment

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

This change will return __str__ instead of __repr__. Is that correct?

write('\n')
else:
write(value)
write('"%s"' % value)
Copy link
Owner

Choose a reason for hiding this comment

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

Are double quotes escaped properly here?

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.

2 participants