diff --git a/hgext/remotenames.py b/hgext/remotenames.py --- a/hgext/remotenames.py +++ b/hgext/remotenames.py @@ -23,6 +23,11 @@ from __future__ import absolute_import import collections +try: + from collections import abc + mutablemapping = abc.MutableMapping +except ImportError: + mutablemapping = collections.MutableMapping from mercurial.i18n import _ @@ -56,7 +61,7 @@ default=True, ) -class lazyremotenamedict(collections.MutableMapping): +class lazyremotenamedict(mutablemapping): """ Read-only dict-like Class to lazily resolve remotename entries