From: Benjamin Peterson Date: Sat, 21 Aug 2010 20:03:15 +0000 (+0000) Subject: fix more indentation X-Git-Tag: v3.2a2~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c16f8b33e05e6ba72f82f4ecca30e1c7ef9e7a8e;p=thirdparty%2FPython%2Fcpython.git fix more indentation --- diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 54edf3186e0d..9e5354f4cfc6 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...])