summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-02-20 03:31:23 (GMT)
commita7b55a33f877d1c210a5372a73ad85983ab8621c (patch)
treeccff5a2b2506f9b290e8c9f83be33bb3dfc16655 /Doc/tutorial
parent5149742e8b3c8221d4cb53dcfc9a12ae3fec9238 (diff)
downloadcpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.zip
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.gz
cpython-a7b55a33f877d1c210a5372a73ad85983ab8621c.tar.bz2
revert r69777 since all the experts agree that extra import lines distract from the code
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/interactive.rst3
-rw-r--r--Doc/tutorial/stdlib2.rst3
2 files changed, 2 insertions, 4 deletions
diff --git a/Doc/tutorial/interactive.rst b/Doc/tutorial/interactive.rst
index 90981e5..6a439bd 100644
--- a/Doc/tutorial/interactive.rst
+++ b/Doc/tutorial/interactive.rst
@@ -99,8 +99,7 @@ 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 readline
- import rlcompleter
+ import rlcompleter, readline
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 b50a3b9..8faa360 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -170,8 +170,7 @@ 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
- import zipfile
+ import threading, zipfile
class AsyncZip(threading.Thread):
def __init__(self, infile, outfile):