Mercurial > vim
comparison runtime/autoload/python3complete.vim @ 28246:e3d6184b89fa
Update runtime files
Commit: https://github.com/vim/vim/commit/46eea444d992c2ae985cabb775a5d283f8e16df3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 30 10:51:39 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Mar 2022 12:00:04 +0200 |
parents | 11b656e74444 |
children |
comparison
equal
deleted
inserted
replaced
28245:97c83c51f43f | 28246:e3d6184b89fa |
---|---|
1 "python3complete.vim - Omni Completion for python | 1 "python3complete.vim - Omni Completion for python |
2 " Maintainer: <vacancy> | 2 " Maintainer: <vacancy> |
3 " Previous Maintainer: Aaron Griffin <aaronmgriffin@gmail.com> | 3 " Previous Maintainer: Aaron Griffin <aaronmgriffin@gmail.com> |
4 " Version: 0.9 | 4 " Version: 0.9 |
5 " Last Updated: 2020 Oct 9 | 5 " Last Updated: 2022 Mar 30 |
6 " | 6 " |
7 " Roland Puntaier: this file contains adaptations for python3 and is parallel to pythoncomplete.vim | 7 " Roland Puntaier: this file contains adaptations for python3 and is parallel to pythoncomplete.vim |
8 " | 8 " |
9 " Changes | 9 " Changes |
10 " TODO: | 10 " TODO: |
89 endif | 89 endif |
90 endfunction | 90 endfunction |
91 | 91 |
92 function! s:DefPython() | 92 function! s:DefPython() |
93 py3 << PYTHONEOF | 93 py3 << PYTHONEOF |
94 import warnings | |
95 warnings.simplefilter(action='ignore', category=FutureWarning) | |
96 | |
94 import sys, tokenize, io, types | 97 import sys, tokenize, io, types |
95 from token import NAME, DEDENT, NEWLINE, STRING | 98 from token import NAME, DEDENT, NEWLINE, STRING |
96 | 99 |
97 debugstmts=[] | 100 debugstmts=[] |
98 def dbg(s): debugstmts.append(s) | 101 def dbg(s): debugstmts.append(s) |