diff options
author | Guido van Rossum <guido@python.org> | 1997-10-22 20:52:53 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-22 20:52:53 +0000 |
commit | 5e5614a4da4a655a26a94bf1778faab297be5783 (patch) | |
tree | b85784425e8453b9522339d7ca48dad269e286e9 | |
parent | 939b384c270874dc5f5f7f8c61c6edeaf5eb529a (diff) | |
download | cpython-5e5614a4da4a655a26a94bf1778faab297be5783.tar.gz |
Removed some unneeded imports, moved others around.
-rw-r--r-- | Lib/rlcompleter.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py index 285faedb72..4deb0bceb4 100644 --- a/Lib/rlcompleter.py +++ b/Lib/rlcompleter.py @@ -41,12 +41,8 @@ used, and this module (and the readline module) are silently inactive. """ import readline -import keyword import __builtin__ import __main__ -import string -import re -import traceback class Completer: @@ -71,6 +67,7 @@ class Completer: currently defines in __main__ that match. """ + import keyword matches = [] n = len(text) for list in [keyword.kwlist, @@ -93,6 +90,7 @@ class Completer: with a __getattr__ hook is evaluated. """ + import re m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text) if not m: return |