mirror of
https://github.com/servo/servo.git
synced 2025-07-15 03:13:41 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
17 lines
344 B
Python
17 lines
344 B
Python
|
|
import py
|
|
class ns(py.xml.Namespace):
|
|
pass
|
|
|
|
doc = ns.books(
|
|
ns.book(
|
|
ns.author("May Day"),
|
|
ns.title("python for java programmers"),),
|
|
ns.book(
|
|
ns.author("why", class_="somecssclass"),
|
|
ns.title("Java for Python programmers"),),
|
|
publisher="N.N",
|
|
)
|
|
print doc.unicode(indent=2).encode('utf8')
|
|
|
|
|