From 005f81ae3daeef3575cba0fd9deb84d15eca5835 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 28 Jul 2021 14:12:11 +0800 Subject: More specific version check for ordered dict type Related to https://github.com/gitpython-developers/GitPython/issues/1095#issuecomment-888032424 --- git/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/config.py') diff --git a/git/config.py b/git/config.py index c4b26ba6..78b93c6f 100644 --- a/git/config.py +++ b/git/config.py @@ -41,7 +41,7 @@ if TYPE_CHECKING: T_ConfigParser = TypeVar('T_ConfigParser', bound='GitConfigParser') -if sys.version_info[:2] < (3, 7): +if sys.version_info[:3] < (3, 7, 2): from collections import OrderedDict OrderedDict_OMD = OrderedDict else: -- cgit v1.2.1