Skip to content
Extraits de code Groupes Projets
Valider 5e7d50a9 rédigé par remi-filament's avatar remi-filament
Parcourir les fichiers

[enh] revert logic for python3 for support of v11+ versions

parent 6d923abc
Branches
Étiquettes
Aucune requête de fusion associée trouvée
{% if odoo_version == '12.0' or odoo_version == '11.0' %} {% if odoo_version == '10.0' %}
#!/usr/bin/env python3
{% else %}
#!/usr/bin/env python #!/usr/bin/env python
{% else %}
#!/usr/bin/env python3
{% endif %} {% endif %}
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import grp import grp
......
{% if odoo_version == '12.0' or odoo_version == '11.0' %} {% if odoo_version == '10.0' %}
#!/usr/bin/env python3
{% else %}
#!/usr/bin/env python #!/usr/bin/env python
{% else %}
#!/usr/bin/env python3
{% endif %} {% endif %}
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import grp import grp
...@@ -9,10 +9,10 @@ import os ...@@ -9,10 +9,10 @@ import os
import pwd import pwd
import shutil import shutil
from subprocess import call from subprocess import call
{% if odoo_version == '12.0' or odoo_version == '11.0' %} {% if odoo_version == '10.0' %}
from urllib.parse import urlsplit
{% else %}
from urlparse import urlsplit from urlparse import urlsplit
{% else %}
from urllib.parse import urlsplit
{% endif %} {% endif %}
import yaml import yaml
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter