diff -r 187f2474bc11 -r 646002338365 mercurial/pycompat.py --- a/mercurial/pycompat.py Tue Feb 13 23:37:58 2018 -0500 +++ b/mercurial/pycompat.py Tue Feb 13 23:00:01 2018 -0700 @@ -11,6 +11,7 @@ from __future__ import absolute_import import getopt +import inspect import os import shlex import sys @@ -65,6 +66,7 @@ maplist = lambda *args: list(map(*args)) ziplist = lambda *args: list(zip(*args)) rawinput = input + getargspec = inspect.getfullargspec # TODO: .buffer might not exist if std streams were replaced; we'll need # a silly wrapper to make a bytes stream backed by a unicode one. @@ -330,6 +332,7 @@ maplist = map ziplist = zip rawinput = raw_input + getargspec = inspect.getargspec def emailparser(*args, **kwargs): import email.parser