Show More
@@ -25,6 +25,8 b' remotenames.hoistedpeer' | |||||
25 | """ |
|
25 | """ | |
26 |
|
26 | |||
27 |
|
27 | |||
|
28 | import collections.abc | |||
|
29 | ||||
28 | from mercurial.i18n import _ |
|
30 | from mercurial.i18n import _ | |
29 |
|
31 | |||
30 | from mercurial.node import bin |
|
32 | from mercurial.node import bin | |
@@ -34,7 +36,6 b' from mercurial import (' | |||||
34 | extensions, |
|
36 | extensions, | |
35 | logexchange, |
|
37 | logexchange, | |
36 | namespaces, |
|
38 | namespaces, | |
37 | pycompat, |
|
|||
38 | registrar, |
|
39 | registrar, | |
39 | revsetlang, |
|
40 | revsetlang, | |
40 | smartset, |
|
41 | smartset, | |
@@ -44,15 +45,6 b' from mercurial import (' | |||||
44 |
|
45 | |||
45 | from mercurial.utils import stringutil |
|
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 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
48 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | |
57 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
49 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
58 | # be specifying the version(s) of Mercurial they are tested with, or |
|
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 | Read-only dict-like Class to lazily resolve remotename entries |
|
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