mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Whitespace normalization.
This commit is contained in:
parent
c86c1b88f9
commit
863ac44b74
23 changed files with 84 additions and 88 deletions
|
@ -60,7 +60,7 @@ class Completer:
|
|||
|
||||
readline.set_completer(Completer(my_namespace).complete)
|
||||
"""
|
||||
|
||||
|
||||
if namespace and not isinstance(namespace, dict):
|
||||
raise TypeError,'namespace must be a dictionary'
|
||||
|
||||
|
@ -82,7 +82,7 @@ class Completer:
|
|||
"""
|
||||
if self.use_main_ns:
|
||||
self.namespace = __main__.__dict__
|
||||
|
||||
|
||||
if state == 0:
|
||||
if "." in text:
|
||||
self.matches = self.attr_matches(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue