pearofducks / ansible-vim

A vim plugin for syntax highlighting Ansible's common filetypes
MIT License
796 stars 98 forks source link

Add python3 support #65

Closed barlik closed 6 years ago

barlik commented 6 years ago

As python3 is the future and some distributions already use python3 for Ansible (namely Archlinux). This pull request adds python3 support for snippets generation. Needless to say, python2 still works.

As a bonus, it's much faster under python3:

(tmp) [.../ansible-vim/UltiSnips] ( master *=)$ time python2 ./generate.py --sort

real    0m40.615s
user    0m40.244s
sys 0m0.128s
Time: 0m41s
(tmp) [.../ansible-vim/UltiSnips] (master *=)$ time python3 ./generate.py --sort

real    0m6.227s
user    0m6.062s
sys 0m0.146s
Time: 0m06s
pearofducks commented 6 years ago

Awesome, thanks for taking time to do this!