summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/rlcomple.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-11-26 15:44:34 (GMT)
committerGuido van Rossum <guido@python.org>1997-11-26 15:44:34 (GMT)
commit0b23348aa944dcb97c84b34d399c857f039e5773 (patch)
tree88178b09c8a16b93ab1ab174df968a61d36e7293 /Lib/dos-8x3/rlcomple.py
parent330c660f66243094e082500bc1d760b2b86024cb (diff)
downloadcpython-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.py6
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