Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix etree.tostring docstring to match signature #68

Merged
merged 1 commit into from

2 participants

@RaphaelKimmig

The default value of the last argument of lxml.etree.tostring, namely inclusive_ns_prefixes=True is omitted from the docstring. This confuses e.g. PyCharms code completion about the required arguments.

The attached diff changes the docstring to match the function signature.

@scoder
Owner

Thanks!

@scoder scoder merged commit 3aa44bf into lxml:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 25, 2012
  1. @RaphaelKimmig
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/lxml/lxml.etree.pyx
View
2  src/lxml/lxml.etree.pyx
@@ -3011,7 +3011,7 @@ def tostring(element_or_tree, *, encoding=None, method=u"xml",
u"""tostring(element_or_tree, encoding=None, method="xml",
xml_declaration=None, pretty_print=False, with_tail=True,
standalone=None, doctype=None,
- exclusive=False, with_comments=True, inclusive_ns_prefixes)
+ exclusive=False, with_comments=True, inclusive_ns_prefixes=None)
Serialize an element to an encoded string representation of its XML
tree.
Something went wrong with that request. Please try again.