--- a/dataimport/pgstore.py Mon Sep 14 16:03:07 2015 +0200
+++ b/dataimport/pgstore.py Thu Sep 17 09:52:06 2015 +0200
@@ -27,7 +27,7 @@
from collections import defaultdict
from base64 import b64encode
-from six import string_types
+from six import string_types, integer_types
from six.moves import cPickle as pickle, range
from cubicweb.utils import make_uid
@@ -166,7 +166,7 @@
# (types, converter) list.
_COPYFROM_BUFFER_CONVERTERS = [
(type(None), _copyfrom_buffer_convert_None),
- ((long, int, float), _copyfrom_buffer_convert_number),
+ (integer_types + (float,), _copyfrom_buffer_convert_number),
(string_types, _copyfrom_buffer_convert_string),
(datetime, _copyfrom_buffer_convert_datetime),
(date, _copyfrom_buffer_convert_date),