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
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: