Show More
@@ -25,6 +25,8 b' remotenames.hoistedpeer' | |||
|
25 | 25 | """ |
|
26 | 26 | |
|
27 | 27 | |
|
28 | import collections.abc | |
|
29 | ||
|
28 | 30 | from mercurial.i18n import _ |
|
29 | 31 | |
|
30 | 32 | from mercurial.node import bin |
@@ -34,7 +36,6 b' from mercurial import (' | |||
|
34 | 36 | extensions, |
|
35 | 37 | logexchange, |
|
36 | 38 | namespaces, |
|
37 | pycompat, | |
|
38 | 39 | registrar, |
|
39 | 40 | revsetlang, |
|
40 | 41 | smartset, |
@@ -44,15 +45,6 b' from mercurial import (' | |||
|
44 | 45 | |
|
45 | 46 | from mercurial.utils import stringutil |
|
46 | 47 | |
|
47 | if pycompat.ispy3: | |
|
48 | import collections.abc | |
|
49 | ||
|
50 | mutablemapping = collections.abc.MutableMapping | |
|
51 | else: | |
|
52 | import collections | |
|
53 | ||
|
54 | mutablemapping = collections.MutableMapping | |
|
55 | ||
|
56 | 48 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
57 | 49 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
58 | 50 | # be specifying the version(s) of Mercurial they are tested with, or |
@@ -81,7 +73,7 b' configitem(' | |||
|
81 | 73 | ) |
|
82 | 74 | |
|
83 | 75 | |
|
84 |
class lazyremotenamedict( |
|
|
76 | class lazyremotenamedict(collections.abc.MutableMapping): | |
|
85 | 77 | """ |
|
86 | 78 | Read-only dict-like Class to lazily resolve remotename entries |
|
87 | 79 |
General Comments 0
You need to be logged in to leave comments.
Login now