diff --git a/passerelle_imio_ia_delib/models.py b/passerelle_imio_ia_delib/models.py index 6dc0bcd..2a7641b 100644 --- a/passerelle_imio_ia_delib/models.py +++ b/passerelle_imio_ia_delib/models.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # passerelle-imio-ia-delib - passerelle connector to IA DELIB IMIO PRODUCTS. # Copyright (C) 2016 Entr'ouvert @@ -172,4 +172,4 @@ class IImioIaDelib(BaseResource): creationData)) return new_point else: - raise ValueError('createItem : request body!') + raise ValueError("createItem : request body!") diff --git a/passerelle_imio_ia_delib/soap.py b/passerelle_imio_ia_delib/soap.py index ed23122..bcf1df3 100644 --- a/passerelle_imio_ia_delib/soap.py +++ b/passerelle_imio_ia_delib/soap.py @@ -1,3 +1,6 @@ +#! /usr/bin/env python3 +# -*- coding: utf-8 -*- + # Passerelle - uniform access to data and services # Copyright (C) 2015 Entr'ouvert # @@ -19,8 +22,8 @@ import requests -import StringIO +from io import StringIO from suds.client import Client from suds.transport.http import HttpAuthenticated from suds.transport import Reply diff --git a/setup.py b/setup.py index 8af93ac..a80290d 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # -*- coding: utf-8 -*- import glob @@ -7,6 +7,7 @@ import re import subprocess import sys +from io import open from setuptools.command.install_lib import install_lib as _install_lib from distutils.command.build import build as _build from distutils.command.sdist import sdist @@ -42,7 +43,7 @@ def get_version(): class compile_translations(Command): - description = 'compile message catalogs to MO files via django compilemessages' + description = u'compile message catalogs to MO files via django compilemessages' user_options = [] def initialize_options(self): @@ -92,6 +93,7 @@ setup( 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 3.5.3', ], install_requires=['django>=1.7, <1.8', ],