diff options
author | Guido van Rossum <guido@python.org> | 1997-11-26 15:44:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-11-26 15:44:34 (GMT) |
commit | 0b23348aa944dcb97c84b34d399c857f039e5773 (patch) | |
tree | 88178b09c8a16b93ab1ab174df968a61d36e7293 /Lib/dos-8x3/rlcomple.py | |
parent | 330c660f66243094e082500bc1d760b2b86024cb (diff) | |
download | cpython-0b23348aa944dcb97c84b34d399c857f039e5773.zip cpython-0b23348aa944dcb97c84b34d399c857f039e5773.tar.gz cpython-0b23348aa944dcb97c84b34d399c857f039e5773.tar.bz2 |
The usual
Diffstat (limited to 'Lib/dos-8x3/rlcomple.py')
-rw-r--r-- | Lib/dos-8x3/rlcomple.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/dos-8x3/rlcomple.py b/Lib/dos-8x3/rlcomple.py index 285faed..4deb0bc 100644 --- a/Lib/dos-8x3/rlcomple.py +++ b/Lib/dos-8x3/rlcomple.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 |