summaryrefslogtreecommitdiff
path: root/Doc/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/interactive.rst3
-rw-r--r--Doc/tutorial/stdlib2.rst3
2 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tutorial/interactive.rst b/Doc/tutorial/interactive.rst
index 6a439bde12..90981e54a9 100644
--- a/Doc/tutorial/interactive.rst
+++ b/Doc/tutorial/interactive.rst
@@ -99,7 +99,8 @@ Automatic completion of variable and module names is optionally available. To
enable it in the interpreter's interactive mode, add the following to your
startup file: [#]_ ::
- import rlcompleter, readline
+ import readline
+ import rlcompleter
readline.parse_and_bind('tab: complete')
This binds the :kbd:`Tab` key to the completion function, so hitting the
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index 8faa360464..b50a3b9f25 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -170,7 +170,8 @@ case is running I/O in parallel with computations in another thread.
The following code shows how the high level :mod:`threading` module can run
tasks in background while the main program continues to run::
- import threading, zipfile
+ import threading
+ import zipfile
class AsyncZip(threading.Thread):
def __init__(self, infile, outfile):