I recently received a pull request to change my vim plugin to make it support python3. But these changes break the plugin for the vim on my Mac which seems to listen to python.
python import sys
python3 import sys
Is there an elegant method to make the script in my plugin detect which statement it should use? Something like:
if has('python') python import ... elseif if has('python3') python3 import ... else finish endif