Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
12f86ade
Commit
12f86ade
authored
Oct 22, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unneeded imports, moved others around.
parent
a8832b45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Lib/rlcompleter.py
Lib/rlcompleter.py
+2
-4
No files found.
Lib/rlcompleter.py
View file @
12f86ade
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment