Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c16f8b3

Browse files
committed
fix more indentation
1 parent ffec810 commit c16f8b3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/operator.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,12 @@ expect a function argument.
369369
Example of using :func:`itemgetter` to retrieve specific fields from a
370370
tuple record:
371371

372-
>>> inventory = [('apple', 3), ('banana', 2), ('pear', 5), ('orange', 1)]
373-
>>> getcount = itemgetter(1)
374-
>>> map(getcount, inventory)
375-
[3, 2, 5, 1]
376-
>>> sorted(inventory, key=getcount)
377-
[('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]
372+
>>> inventory = [('apple', 3), ('banana', 2), ('pear', 5), ('orange', 1)]
373+
>>> getcount = itemgetter(1)
374+
>>> map(getcount, inventory)
375+
[3, 2, 5, 1]
376+
>>> sorted(inventory, key=getcount)
377+
[('orange', 1), ('banana', 2), ('apple', 3), ('pear', 5)]
378378

379379

380380
.. function:: methodcaller(name[, args...])

0 commit comments

Comments
 (0)