コード例 #1
0
    def __init__(self, manager, parse_python_two: bool = False):
        self._manager = manager
        self._global_names = []
        self._import_from_nodes = []
        self._delayed_assattr = []
        self._visit_meths = {}

        # Configure the right classes for the right module
        self._parser_module = _get_parser_module(parse_python_two=parse_python_two)
        self._unary_op_classes = _unary_operators_from_module(self._parser_module)
        self._cmp_op_classes = _compare_operators_from_module(self._parser_module)
        self._bool_op_classes = _bool_operators_from_module(self._parser_module)
        self._bin_op_classes = _binary_operators_from_module(self._parser_module)
        self._context_classes = _contexts_from_module(self._parser_module)
コード例 #2
0
ファイル: rebuilder.py プロジェクト: gtt116/vimrc
    def __init__(self, manager, parse_python_two: bool = False):
        self._manager = manager
        self._global_names = []
        self._import_from_nodes = []
        self._delayed_assattr = []
        self._visit_meths = {}

        # Configure the right classes for the right module
        self._parser_module = _get_parser_module(parse_python_two=parse_python_two)
        self._unary_op_classes = _unary_operators_from_module(self._parser_module)
        self._cmp_op_classes = _compare_operators_from_module(self._parser_module)
        self._bool_op_classes = _bool_operators_from_module(self._parser_module)
        self._bin_op_classes = _binary_operators_from_module(self._parser_module)
        self._context_classes = _contexts_from_module(self._parser_module)