Permalink
Browse files

Updated README unparse example with pretty=True.

  • Loading branch information...
1 parent 7989d80 commit 8c35b9295fcded0da38c26e8d76cd01aa79be2ca @martinblech committed Feb 16, 2014
Showing with 8 additions and 8 deletions.
  1. +8 −8 README.md
View
16 README.md
@@ -127,17 +127,17 @@ You can also convert in the other direction, using the `unparse()` method:
```python
>>> mydict = {
-... 'page': {
-... 'title': 'King Crimson',
-... 'ns': 0,
-... 'revision': {
-... 'id': 547909091,
-... }
+... 'response': {
+... 'status': 'good',
+... 'last_updated': '2014-02-16T23:10:12Z',
... }
... }
->>> print unparse(mydict)
+>>> print unparse(mydict, pretty=True)
<?xml version="1.0" encoding="utf-8"?>
-<page><ns>0</ns><revision><id>547909091</id></revision><title>King Crimson</title></page>
+<response>
+ <status>good</status>
+ <last_updated>2014-02-16T23:10:12Z</last_updated>
+</response>
```
## Ok, how do I get it?

0 comments on commit 8c35b92

Please sign in to comment.