Kaydet (Commit) 5146a1e6 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz Kaydeden (comit) GitHub

Create attributes.py

üst d76aeff6
#!/usr/bin/env python
import piksemel as iks
doc_xml = '<lala b="" c="42"/>'
doc = iks.newDocument("lala")
doc.setAttribute("a", "lala")
doc.setAttribute("b", "nanuk")
doc.setAttribute("b", "")
doc.setAttribute("a", None)
doc.setAttribute("c", "42")
assert(doc.toString() == doc_xml)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment