# HG changeset patch # User Adrien Di Mascio # Date 1525349126 -7200 # Node ID 3ee1db91fb00cfeb818a1bad2490a2e9e6161748 # Parent 23bc9f3856458aaa76c3fc11c6d9ba628bb19786 [python3] use inspect.getfullargspec instead of inspect.getargspec The latter is now deprecated diff -r 23bc9f385645 -r 3ee1db91fb00 cubicweb/utils.py --- a/cubicweb/utils.py Thu Oct 12 15:22:00 2017 +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