[PATCH 3 of 5 saem_ref v2] Use __future__.print_function in ccplugin.py

Denis Laxalde denis.laxalde at logilab.fr
Mon Jan 8 15:05:59 CET 2018

# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1515418761 -3600
#      Mon Jan 08 14:39:21 2018 +0100
# Node ID 745664aaede05a0172e67cba9b639c9ae01b03e9
# Parent  0588fea254945d68fdbba019702f0764f536fa0f
# EXP-Topic lcsv-skos-import
Use __future__.print_function in ccplugin.py

This is to get a bit of consistency with ccplugin.py in cubicweb-skos.
Otherwise, we get strange errors about getting unicode instead or str.

diff --git a/cubicweb_saem_ref/ccplugin.py b/cubicweb_saem_ref/ccplugin.py
--- a/cubicweb_saem_ref/ccplugin.py
+++ b/cubicweb_saem_ref/ccplugin.py
@@ -14,6 +14,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-ctl plugin customizing eac-import command."""
+from __future__ import print_function
 import sys

More information about the saem-devel mailing list