changeset 52897: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 8de68446a5bd
children abcfb4ce132e
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Thu Feb 13 13:13:05 2025 +0100
+++ b/mercurial/util.py	Sat Feb 15 14:12:20 2025 +0100
@@ -1423,7 +1423,7 @@
     """
 
 
-class cowsortdict(cow, sortdict[_KT, _VT]):
+class cowsortdict(cow, sortdict):
     """copy-on-write sortdict
 
     Be sure to call d = d.preparewrite() before writing to d.