diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2021-09-23 19:40:23 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-09-23 21:00:29 +0200 |
commit | c7c3868c74a2ebc8f2c69a60389f0451e544bd34 (patch) | |
tree | 16435d6ce186bf64c798fa6b6e8dfc30b306bf76 /dev-vcs | |
parent | sys-libs/libcap: remove unused patch (diff) | |
download | gentoo-c7c3868c74a2ebc8f2c69a60389f0451e544bd34.tar.gz gentoo-c7c3868c74a2ebc8f2c69a60389f0451e544bd34.tar.bz2 gentoo-c7c3868c74a2ebc8f2c69a60389f0451e544bd34.zip |
dev-vcs/git-cola: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/22375
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/git-cola/files/git-cola-3.5-py3.8-line-buffering.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/dev-vcs/git-cola/files/git-cola-3.5-py3.8-line-buffering.patch b/dev-vcs/git-cola/files/git-cola-3.5-py3.8-line-buffering.patch deleted file mode 100644 index 4938d6a30eca..000000000000 --- a/dev-vcs/git-cola/files/git-cola-3.5-py3.8-line-buffering.patch +++ /dev/null @@ -1,29 +0,0 @@ -From ed00653d43b00b18e89c8c4d9e733ef156c02579 Mon Sep 17 00:00:00 2001 -From: Simon Peeters <peeters.simon@gmail.com> -Date: Mon, 18 Nov 2019 21:15:32 +0100 -Subject: [PATCH] Only use line buffering in text mode when calling Popen - -Python3.8 started complaining loudly when trying to open a stream in binary mode but with line buffering enabled. -So we should only try to set `bufsize` to `1` when we enable `text` or `universal_newlines` mode. - -see https://docs.python.org/3/library/subprocess.html#subprocess.Popen under bufsize ---- - cola/core.py | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/cola/core.py b/cola/core.py -index 0fabfcf3d..5ad719f05 100644 ---- a/cola/core.py -+++ b/cola/core.py -@@ -208,7 +208,10 @@ def start_command(cmd, cwd=None, add_env=None, - CREATE_NO_WINDOW = 0x08000000 - extra['creationflags'] = CREATE_NO_WINDOW - -- return subprocess.Popen(cmd, bufsize=1, stdin=stdin, stdout=stdout, -+ # Use line buffering when in text/universal_newlines mode, -+ # otherwise use the system default buffer size. -+ bufsize = 1 if universal_newlines else -1 -+ return subprocess.Popen(cmd, bufsize=bufsize, stdin=stdin, stdout=stdout, - stderr=stderr, cwd=cwd, env=env, - universal_newlines=universal_newlines, **extra) - |