Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 52885:f4dd447e6efd
py-compat: backed out changeset b1daf3064362
This currently fails on 3.8 with the following error::
fatal: fetching library from `hg` failed with 1:
Traceback (most recent call last):
File "/tmp/hgtests.hus0o5qa/install/bin/hg", line 61, in <module>
dispatch.run()
File "/opt/vendor/pyenv/pyenv-2.4.13/versions/3.8.19/lib/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/hgtests.hus0o5qa/install/lib/python3.8/site-packages/mercurial/dispatch.py", line 758, in <module>
class lazyaliasentry:
File "/tmp/hgtests.hus0o5qa/install/lib/python3.8/site-packages/mercurial/dispatch.py", line 769, in lazyaliasentry
@util.propertycache
File "/opt/vendor/pyenv/pyenv-2.4.13/versions/3.8.19/lib/python3.8/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/hgtests.hus0o5qa/install/lib/python3.8/site-packages/mercurial/util.py", line 1360, in <module>
class sortdict(collections.OrderedDict[_KT, _VT]):
TypeError: 'type' object is not subscriptable
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 15 Feb 2025 14:12:20 +0100 |
parents | b1daf3064362 |
children | abcfb4ce132e |
comparison
equal
deleted
inserted
replaced
52884:8de68446a5bd | 52885:f4dd447e6efd |
---|---|
1421 >>> b is b.preparewrite() | 1421 >>> b is b.preparewrite() |
1422 True | 1422 True |
1423 """ | 1423 """ |
1424 | 1424 |
1425 | 1425 |
1426 class cowsortdict(cow, sortdict[_KT, _VT]): | 1426 class cowsortdict(cow, sortdict): |
1427 """copy-on-write sortdict | 1427 """copy-on-write sortdict |
1428 | 1428 |
1429 Be sure to call d = d.preparewrite() before writing to d. | 1429 Be sure to call d = d.preparewrite() before writing to d. |
1430 """ | 1430 """ |
1431 | 1431 |