summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-06-17 17:29:37 +0100
committerYobmod <yobmod@gmail.com>2021-06-17 17:29:37 +0100
commit636f77bf8d58a482df0bde8c0a6a8828950a0788 (patch)
treee1207dbe034f82deacbb76369716779608e7056d /git/cmd.py
parent567c892322776756e8d0095e89f39b25b9b01bc2 (diff)
parentb0f79c58ad919e90261d1e332df79a4ad0bc40de (diff)
downloadgitpython-636f77bf8d58a482df0bde8c0a6a8828950a0788.tar.gz
fix conflict
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 d15b97ca..e078e4a1 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,
@@ -1004,13 +1002,6 @@ class Git(LazyMixin):
def transform_kwargs(self, split_single_char_options: bool = True, **kwargs: Any) -> List[str]:
"""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)):