diff -r 187f2474bc11 -r 646002338365 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Feb 13 23:37:58 2018 -0500 +++ b/mercurial/localrepo.py Tue Feb 13 23:00:01 2018 -0700 @@ -9,7 +9,6 @@ import errno import hashlib -import inspect import os import random import time @@ -1068,7 +1067,7 @@ if not fn: fn = lambda s, c, **kwargs: util.filter(s, c) # Wrap old filters not supporting keyword arguments - if not inspect.getargspec(fn)[2]: + if not pycompat.getargspec(fn)[2]: oldfn = fn fn = lambda s, c, **kwargs: oldfn(s, c) l.append((mf, fn, params))