commit | e0906d13c3cfe4286a7b5fb05e9cc3fcb65c77e4 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 31 03:46:28 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 31 03:46:28 2007 +0000 |
tree | 2aefcd1e01263f1084d412678a5dcc82e6d9a052 | |
parent | 7aa02e6590e2155e8f72bb4491c96db40a50cac3 [diff] [blame] |
A few more fixes to the tutorial
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 0d9a21d..ebd531e 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst
@@ -436,8 +436,7 @@ print("-- I'm sorry, we're all out of", kind) for arg in arguments: print arg print('-'*40) - keys = keywords.keys() - keys.sort() + keys = sorted(keywords.keys()) for kw in keys: print(kw, ':', keywords[kw]) It could be called like this::