summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-08-21 20:03:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-08-21 20:03:15 (GMT)
commitc16f8b33e05e6ba72f82f4ecca30e1c7ef9e7a8e (patch)
treea6228762b041e72cb71783efe8b27c1b864265c5 /Doc
parentffec810d886bb1e1f71e4d132b494143a091e663 (diff)
downloadcpython-c16f8b33e05e6ba72f82f4ecca30e1c7ef9e7a8e.zip
cpython-c16f8b33e05e6ba72f82f4ecca30e1c7ef9e7a8e.tar.gz
cpython-c16f8b33e05e6ba72f82f4ecca30e1c7ef9e7a8e.tar.bz2
fix more indentation
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/operator.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
index 54edf31..9e5354f 100644
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -369,12 +369,12 @@ expect a function argument.
Example of using :func:`itemgetter` to retrieve specific fields from a
tuple record:
- >>> inventory = [('apple', 3), ('banana', 2), ('pear', 5), ('orange', 1)]
- >>> getcount = itemgetter(1)
- >>> map(getcount, inventory)
- [3, 2, 5, 1]
- >>> sorted(inventory, key=getcount)
- [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]
+ >>> inventory = [('apple', 3), ('banana', 2), ('pear', 5), ('orange', 1)]
+ >>> getcount = itemgetter(1)
+ >>> map(getcount, inventory)
+ [3, 2, 5, 1]
+ >>> sorted(inventory, key=getcount)
+ [('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]
.. function:: methodcaller(name[, args...])