summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorBert Wesarg <bert.wesarg@googlemail.com>2021-03-11 16:35:24 +0100
committerBert Wesarg <bert.wesarg@googlemail.com>2021-03-13 20:34:07 +0100
commit45d1cd59d39227ee6841042eab85116a59a26d22 (patch)
tree843ffd92ec49921a92fc8f44eeced3c8afcf03b2 /git/cmd.py
parent690722a611a25a1afcdb0163d3cfd0a8c89d1d04 (diff)
downloadgitpython-45d1cd59d39227ee6841042eab85116a59a26d22.tar.gz
Remove support for Python 3.5
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/git/cmd.py b/git/cmd.py
index ec630d93..72ec0381 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -17,9 +17,7 @@ from subprocess import (
import subprocess
import sys
import threading
-from collections import OrderedDict
from textwrap import dedent
-import warnings
from git.compat import (
defenc,
@@ -903,13 +901,6 @@ class Git(LazyMixin):
def transform_kwargs(self, split_single_char_options=True, **kwargs):
"""Transforms Python style kwargs into git command line options."""
- # Python 3.6 preserves the order of kwargs and thus has a stable
- # order. For older versions sort the kwargs by the key to get a stable
- # order.
- if sys.version_info[:2] < (3, 6):
- kwargs = OrderedDict(sorted(kwargs.items(), key=lambda x: x[0]))
- warnings.warn("Python 3.5 support is deprecated and will be removed 2021-09-05.\n" +
- "It does not preserve the order for key-word arguments and enforce lexical sorting instead.")
args = []
for k, v in kwargs.items():
if isinstance(v, (list, tuple)):