mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-10-07 20:44:35 +08:00
Support Python 2.6+ & 3.0+
* Seamless support of both version with same code. * Added test version for py3 on RVM = 2.1.0.
This commit is contained in:
1 parent
d738da2ddb
commit
ef4549d2d1
4 files changed
+39
-18
No files matched your search
@@ -45,6 +45,8 @@ Execute (Print Interpreter Version):
|
||||
silent ruby puts 'Ruby: ' + RUBY_VERSION
|
||||
elseif has('python')
|
||||
silent python import sys; svi = sys.version_info; print 'Python: {}.{}.{}'.format(svi[0], svi[1], svi[2])
|
||||
elseif has('python3')
|
||||
silent python3 import sys; svi = sys.version_info; print('Python: {}.{}.{}'.format(svi[0], svi[1], svi[2]))
|
||||
endif
|
||||
redir END
|
||||
Log substitute(out, '\n', '', 'g')
|
||||
|
||||
Reference in new issue
Block a user