# HG changeset patch # User Adrien Di Mascio # Date 1525349126 -7200 # Node ID 48e763ad3b3f6d2a16b8d87de1c3c46ff352342a # Parent cbbcfa69a0e74110447d590ed42524dc2d3665ec [python3] use inspect.getfullargspec instead of inspect.getargspec The latter is now deprecated diff -r cbbcfa69a0e7 -r 48e763ad3b3f cubicweb/utils.py --- a/cubicweb/utils.py Wed Apr 25 15:29:25 2018 +0200 +++ b/cubicweb/utils.py Thu May 03 14:05:26 2018 +0200 @@ -26,8 +26,13 @@ import re import json +from six import PY3 + from operator import itemgetter -from inspect import getargspec +if PY3: + from inspect import getfullargspec as getargspec +else: + from inspect import getargspec from itertools import repeat from uuid import uuid4 from warnings import warn