1 """Word completion for CMS Software. 2 Based on rlcompleter from Python 2.4.1. Included additional namespace for not loaded modules 3 Please read license in your lcg external python version 5 benedikt.hegner@cern.ch 8 from __future__
import absolute_import
16 __all__ = [
"CMSCompleter"]
21 if namespace
and not isinstance(namespace, dict):
22 raise TypeError(
'namespace must be a dictionary')
34 from .
import namespaceDict
37 print 'Could not load CMS namespace' 41 """Compute matches when text is a simple name. 43 Return a list of all keywords, built-in functions and names currently 44 defined in self.namespace and self.cmsnamespace that match. 50 for list
in [keyword.kwlist,
54 if word[:n] == text
and word !=
"__builtins__":
60 readline.parse_and_bind(
'tab: complete')
def global_matches(self, text)
def __init__(self, namespace=None)